| 74 | } |
| 75 | |
| 76 | void Notifier::Wait(comm::RetCode &retcode) { |
| 77 | int iretcode; |
| 78 | while (!comm::utils::CoRead(impl_->fds[0], reinterpret_cast<char*>(&iretcode), sizeof(int))) { |
| 79 | QLErr("CoRead fail"); |
| 80 | poll(nullptr, 0, 100); |
| 81 | } |
| 82 | retcode = static_cast<comm::RetCode>(iretcode); |
| 83 | } |
| 84 | |
| 85 | ////////////////////////// |
| 86 |