MCPcopy Create free account
hub / github.com/FastLED/FastLED / is_would_block

Function is_would_block

src/fl/stl/asio/ip/tcp.cpp.hpp:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131bool is_would_block() {
132#ifdef FL_IS_WIN
133 int err = WSAGetLastError();
134 return err == WSAEWOULDBLOCK;
135#else
136 return errno == EWOULDBLOCK || errno == EAGAIN;
137#endif
138}
139
140
141int plat_getsockname(int fd, struct sockaddr *addr, socklen_t *addrlen) {

Callers 3

read_someMethod · 0.85
write_someMethod · 0.85
acceptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected