carb::thread::getAffinity
Defined in carb/thread/Util.h
- 
inline CpuMaskVector carb::thread::getAffinity(NativeHandleType h)
- Gets the current CPU Affinity for the thread. - On Windows each entry in the CpuMaskVector represents a Processor Group. On Linux, the CpuMaskVector is analogous to a cpu_set_t. - Note - M1 Macs do not support thread affinity so this will always return an empty vector. - Parameters
- h – The thread to get CPU Affinity for. 
- Returns
- A CpuMaskVector containing the cpu affinities for the thread. If the underlying functions to get thread affinity return an error, the returned CpuMaskVector will be empty and - errnoor- last-errorwill be set.