| 57 | } |
| 58 | |
| 59 | comm::RetCode Task::Wait() { |
| 60 | if (nullptr == notifier_) return comm::RetCode::RET_ERR_NOTIFIER_MISS; |
| 61 | |
| 62 | comm::RetCode retcode = comm::RetCode::RET_OK; |
| 63 | notifier_->Wait(retcode); |
| 64 | |
| 65 | comm::NotifierPool::GetInstance()->Put(notifier_); |
| 66 | |
| 67 | return retcode; |
| 68 | } |
| 69 | |
| 70 | void Task::Notify(comm::RetCode retcode) { |
| 71 | if (nullptr == notifier_) return; |