MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / CPU_SET

Function CPU_SET

Disruptor/ThreadHelper_macOS.cpp:47–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 static inline void CPU_ZERO(cpu_set_t *cs) { cs->count = 0; }
46
47 static inline void CPU_SET(int num, cpu_set_t *cs) { cs->count |= (1 << num); }
48
49 static inline int CPU_ISSET(int num, cpu_set_t *cs) { return (cs->count & (1 << num)); }
50

Callers 2

setThreadAffinityFunction · 0.85
setThreadAffinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected