| 66 | } |
| 67 | |
| 68 | void Notifier::Notify(const comm::RetCode retcode) { |
| 69 | int iretcode = as_integer(retcode); |
| 70 | while (!comm::utils::CoWrite(impl_->fds[1], reinterpret_cast<char*>(&iretcode), sizeof(int))) { |
| 71 | QLErr("CoWrite fail"); |
| 72 | poll(nullptr, 0, 100); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | void Notifier::Wait(comm::RetCode &retcode) { |
| 77 | int iretcode; |