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

Function SetFlag

util/network/socket.cpp:1151–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149}
1150
1151static inline void SetFlag(int fd, int flag, bool value) {
1152 if (value) {
1153 EnableFlag(fd, flag);
1154 } else {
1155 DisableFlag(fd, flag);
1156 }
1157}
1158
1159static inline bool FlagsAreEnabled(int fd, int flags) {
1160 return GetFlags(fd) & flags;

Callers 1

SetNonBlockFunction · 0.70

Calls 2

EnableFlagFunction · 0.85
DisableFlagFunction · 0.85

Tested by

no test coverage detected