| 104 | } |
| 105 | |
| 106 | inline void ForkLoop(size_t threads) { |
| 107 | Y_ENSURE(!HasLoop_ || *HasLoop_); |
| 108 | HasLoop_ = true; |
| 109 | //here we can have trouble with binding port(s), so expect exceptions |
| 110 | IRequesterRef rr = MultiRequester(ListenAddrs(), this); |
| 111 | LF_.Reset(new TLoopFunc(this, threads, rr)); |
| 112 | } |
| 113 | |
| 114 | inline void Stop() { |
| 115 | RQ_->Schedule(nullptr); |
no test coverage detected