MCPcopy Create free account
hub / github.com/catboost/catboost / PollFlags

Function PollFlags

library/cpp/coroutine/engine/poller.cpp:191–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191 inline short PollFlags(ui16 flags) noexcept {
192 short ret = 0;
193
194 if (flags & CONT_POLL_READ) {
195 ret |= POLLIN;
196 }
197
198 if (flags & CONT_POLL_WRITE) {
199 ret |= POLLOUT;
200 }
201
202#if defined(_linux_)
203 if (flags & CONT_POLL_RDHUP) {
204 ret |= POLLRDHUP;
205 }
206#endif
207
208 return ret;
209 }
210
211
212 class TPollPoller {

Callers 1

WaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected