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

Function IsBlocked

library/cpp/coroutine/engine/network.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace NCoro {
15 namespace {
16 bool IsBlocked(int lasterr) noexcept {
17 return lasterr == EAGAIN || lasterr == EWOULDBLOCK;
18 }
19
20 ssize_t DoReadVector(SOCKET fd, TContIOVector* vec) noexcept {
21 return readv(fd, (const iovec*) vec->Parts(), Min(IOV_MAX, (int) vec->Count()));

Callers 4

ReadVectorDFunction · 0.70
WriteVectorDFunction · 0.70
ConnectDFunction · 0.70
AcceptDFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected