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

Function CPU_ISSET

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

Source from the content-addressed store, hash-verified

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
51 int sched_getaffinity(pid_t pid, size_t cpu_size, cpu_set_t *cpu_set)
52 {

Callers 3

pthread_setaffinity_npFunction · 0.85
getThreadAffinityFunction · 0.85
getThreadAffinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected