* Returns the cpu affinity mask of the currently executing thread. The type * cpu_set_t encodes information about which cores the current thread is * permitted to run on. */
| 103 | * permitted to run on. |
| 104 | */ |
| 105 | static FORCE_INLINE |
| 106 | cpu_set_t getCpuAffinity() { |
| 107 | cpu_set_t cpuset; |
| 108 | |
| 109 | CPU_ZERO(&cpuset); |
| 110 | assert(sched_getaffinity(0, sizeof(cpuset), &cpuset) == 0); |
| 111 | return cpuset; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * This function sets the allowable set of cores for the currently executing |
nothing calls this directly
no outgoing calls
no test coverage detected