| 415 | |
| 416 | private: |
| 417 | void setError(IStatus* status, bool stopTask) |
| 418 | { |
| 419 | const bool copyStatus = (m_status.isSuccess() && status && status->getState() == IStatus::STATE_ERRORS); |
| 420 | if (!copyStatus && (!stopTask || m_stop)) |
| 421 | return; |
| 422 | |
| 423 | MutexLockGuard guard(m_mutex, FB_FUNCTION); |
| 424 | if (m_status.isSuccess() && copyStatus) |
| 425 | m_status.save(status); |
| 426 | if (stopTask) |
| 427 | m_stop = true; |
| 428 | } |
| 429 | |
| 430 | MemoryPool* m_pool; |
| 431 | Database* m_dbb; |