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

Function EnableFlag

util/network/socket.cpp:1133–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131}
1132
1133static inline void EnableFlag(int fd, int flag) {
1134 const int oldf = GetFlags(fd);
1135 const int newf = oldf | flag;
1136
1137 if (oldf != newf) {
1138 SetFlags(fd, newf);
1139 }
1140}
1141
1142static inline void DisableFlag(int fd, int flag) {
1143 const int oldf = GetFlags(fd);

Callers 1

SetFlagFunction · 0.85

Calls 2

GetFlagsFunction · 0.85
SetFlagsFunction · 0.85

Tested by

no test coverage detected