Searched refs:cpuset (Results 1 – 2 of 2) sorted by relevance
/libuv/src/unix/ |
H A D | thread.c | 188 uv__cpu_set_t cpuset; in uv_thread_setaffinity() local 203 CPU_ZERO(&cpuset); in uv_thread_setaffinity() 206 CPU_SET(i, &cpuset); in uv_thread_setaffinity() 209 if (sched_setaffinity(pthread_gettid_np(*tid), sizeof(cpuset), &cpuset)) in uv_thread_setaffinity() 214 r = pthread_setaffinity_np(*tid, sizeof(cpuset), &cpuset); in uv_thread_setaffinity() 226 uv__cpu_set_t cpuset; in uv_thread_getaffinity() local 235 CPU_ZERO(&cpuset); in uv_thread_getaffinity() 237 if (sched_getaffinity(pthread_gettid_np(*tid), sizeof(cpuset), &cpuset)) in uv_thread_getaffinity() 242 r = pthread_getaffinity_np(*tid, sizeof(cpuset), &cpuset); in uv_thread_getaffinity() 247 cpumask[i] = !!CPU_ISSET(i, &cpuset); in uv_thread_getaffinity()
|
H A D | core.c | 1883 # define uv__cpu_count(cpuset) CPU_COUNT(cpuset) argument
|
Completed in 10 milliseconds