Searched refs:cpumask (Results 1 – 5 of 5) sorted by relevance
/libuv/test/ |
H A D | test-thread-affinity.c | 31 char* cpumask; in check_affinity() local 35 cpumask = (char*)arg; in check_affinity() 41 r = uv_thread_setaffinity(&tid, cpumask + cpumasksize, cpumask, cpumasksize); in check_affinity() 52 char* cpumask; in TEST_IMPL() local 69 ASSERT(cpumask); in TEST_IMPL() 83 cpumask[t1second + 0] = 1; in TEST_IMPL() 84 cpumask[t2first + 0] = 1; in TEST_IMPL() 89 cpumask[t2first + 2] = 1; in TEST_IMPL() 90 cpumask[t1first + 3] = 1; in TEST_IMPL() 126 cpumask[c] = 1; in TEST_IMPL() [all …]
|
/libuv/docs/src/ |
H A D | threading.rst | 99 .. c:function:: int uv_thread_setaffinity(uv_thread_t* tid, char* cpumask, char* oldmask, size_t ma… 101 Sets the specified thread's affinity to cpumask, which is specified in 104 and maps the cpu_set_t to bytes in oldmask. Then maps the bytes in cpumask 106 the bytes in cpumask to a bitmask and uses SetThreadAffinityMask() which 109 The mask_size specifies the number of entries (bytes) in cpumask / oldmask, 117 .. c:function:: int uv_thread_getaffinity(uv_thread_t* tid, char* cpumask, size_t mask_size) 120 cpu_set_t returned by :man:`pthread_getaffinity_np(3)` to bytes in cpumask. 122 The mask_size specifies the number of entries (bytes) in cpumask,
|
/libuv/src/unix/ |
H A D | thread.c | 192 char* cpumask, in uv_thread_setaffinity() argument 214 if (cpumask[i]) in uv_thread_setaffinity() 231 char* cpumask, in uv_thread_getaffinity() argument 256 cpumask[i] = !!CPU_ISSET(i, &cpuset); in uv_thread_getaffinity() 262 char* cpumask, in uv_thread_setaffinity() argument 270 char* cpumask, in uv_thread_getaffinity() argument
|
/libuv/src/win/ |
H A D | thread.c | 171 char* cpumask, in uv_thread_setaffinity() argument 193 if (cpumask[i]) { in uv_thread_setaffinity() 214 char* cpumask, in uv_thread_getaffinity() argument 237 cpumask[i] = (threadmask >> i) & 1; in uv_thread_getaffinity()
|
/libuv/include/ |
H A D | uv.h | 1899 char* cpumask, 1903 char* cpumask,
|
Completed in 16 milliseconds