|
|
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask) {
|
|
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask) {
|
|
|
thread_policy_set(pthread_mach_thread_np(thread), THREAD_AFFINITY_POLICY, (integer_t*)&mask, 1);
|
|
thread_policy_set(pthread_mach_thread_np(thread), THREAD_AFFINITY_POLICY, (integer_t*)&mask, 1);
|