Lines Matching defs:cpuset
395 bool WorkerThread::AvailableCpus(cpu_set_t *cpuset) {
396 CPU_ZERO(cpuset);
398 return sched_getaffinity(getppid(), sizeof(*cpuset), cpuset) == 0;
409 bool WorkerThread::CurrentCpus(cpu_set_t *cpuset) {
410 CPU_ZERO(cpuset);
412 return sched_getaffinity(0, sizeof(*cpuset), cpuset) == 0;
3504 cpu_set_t cpuset;
3505 if (!AvailableCpus(&cpuset)) {
3537 if (CPU_ISSET(cpu, &cpuset)) {
3556 if (CPU_ISSET(cpu, &cpuset)) {