| 441 | } |
| 442 | |
| 443 | inline void Remove(SOCKET fd) noexcept { |
| 444 | with_lock (CommandLock_) { |
| 445 | Commands_.push_back(TCommand(fd, 0)); |
| 446 | } |
| 447 | |
| 448 | Signal(); |
| 449 | } |
| 450 | |
| 451 | inline size_t Wait(TEvent* events, size_t len, int timeout) noexcept { |
| 452 | auto guard = Guard(Lock_); |