Home
last modified time | relevance | path

Searched refs:thread_mask (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/ipc/
Dipc_perftest_util.cc74 const DWORD_PTR thread_mask = static_cast<DWORD_PTR>(1) << cpu_number; in LockThreadAffinity() local
75 old_affinity_ = SetThreadAffinityMask(GetCurrentThread(), thread_mask); in LockThreadAffinity()
/external/stressapptest/src/
Dworker.cc427 bool WorkerThread::BindToCpus(const cpu_set_t *thread_mask) { in BindToCpus() argument
430 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()