Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ is_blocking
Function
is_blocking
src/butil/fd_utility.cpp:34–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
namespace butil {
33
34
bool is_blocking(int fd) {
35
const int flags = fcntl(fd, F_GETFL, 0);
36
return flags >= 0 && !(flags & O_NONBLOCK);
37
}
38
39
int make_non_blocking(int fd) {
40
const int flags = fcntl(fd, F_GETFL, 0);
Callers
5
TEST
Function · 0.85
TEST
Function · 0.85
fd.cpp
File · 0.85
bthread_timed_connect
Function · 0.85
pthread_timed_connect
Function · 0.85
Calls
no outgoing calls
Tested by
2
TEST
Function · 0.68
TEST
Function · 0.68