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

Function DisableFlag

util/network/socket.cpp:1142–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140}
1141
1142static inline void DisableFlag(int fd, int flag) {
1143 const int oldf = GetFlags(fd);
1144 const int newf = oldf & (~flag);
1145
1146 if (oldf != newf) {
1147 SetFlags(fd, newf);
1148 }
1149}
1150
1151static inline void SetFlag(int fd, int flag, bool value) {
1152 if (value) {

Callers 1

SetFlagFunction · 0.85

Calls 2

GetFlagsFunction · 0.85
SetFlagsFunction · 0.85

Tested by

no test coverage detected