Searched refs:cpuset (Results 1 – 2 of 2) sorted by relevance
/libuv/src/unix/ |
H A D | thread.c | 197 uv__cpu_set_t cpuset; in uv_thread_setaffinity() local 212 CPU_ZERO(&cpuset); in uv_thread_setaffinity() 215 CPU_SET(i, &cpuset); in uv_thread_setaffinity() 218 if (sched_setaffinity(pthread_gettid_np(*tid), sizeof(cpuset), &cpuset)) in uv_thread_setaffinity() 223 r = pthread_setaffinity_np(*tid, sizeof(cpuset), &cpuset); in uv_thread_setaffinity() 235 uv__cpu_set_t cpuset; in uv_thread_getaffinity() local 244 CPU_ZERO(&cpuset); in uv_thread_getaffinity() 246 if (sched_getaffinity(pthread_gettid_np(*tid), sizeof(cpuset), &cpuset)) in uv_thread_getaffinity() 251 r = pthread_getaffinity_np(*tid, sizeof(cpuset), &cpuset); in uv_thread_getaffinity() 256 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 9 milliseconds