| 86 | } |
| 87 | |
| 88 | inline void Add(TClientConnection* c) noexcept { |
| 89 | TGuard<TMutex> g(Mutex_); |
| 90 | |
| 91 | Conns_.PushBack(c); |
| 92 | if (Options.OneShotPoll) { |
| 93 | Poller_->WaitReadOneShot(c->Socket_, (void*)static_cast<const IPollAble*>(c)); |
| 94 | } else { |
| 95 | Poller_->WaitRead(c->Socket_, (void*)static_cast<const IPollAble*>(c)); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | void Cleanup(size_t threadNum) { |
| 100 | if (Options.nListenerThreads < 2) { |
no test coverage detected