Searched refs:thread_mask (Results 1 – 2 of 2) sorted by relevance
74 const DWORD_PTR thread_mask = static_cast<DWORD_PTR>(1) << cpu_number; in LockThreadAffinity() local75 old_affinity_ = SetThreadAffinityMask(GetCurrentThread(), thread_mask); in LockThreadAffinity()
427 bool WorkerThread::BindToCpus(const cpu_set_t *thread_mask) { in BindToCpus() argument430 if (cpuset_isequal(thread_mask, &process_mask)) in BindToCpus()435 if (!cpuset_issubset(thread_mask, &process_mask)) { in BindToCpus()438 cpuset_format(thread_mask).c_str(), in BindToCpus()443 return (sched_setaffinity(gettid(), sizeof(*thread_mask), thread_mask) == 0); in BindToCpus()