Home
last modified time | relevance | path

Searched refs:cpumask (Results 1 – 5 of 5) sorted by relevance

/libuv/test/
H A Dtest-thread-affinity.c31 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 Dthreading.rst91 .. c:function:: int uv_thread_setaffinity(uv_thread_t* tid, char* cpumask, char* oldmask, size_t ma…
93 Sets the specified thread's affinity to cpumask, which is specified in
96 and maps the cpu_set_t to bytes in oldmask. Then maps the bytes in cpumask
98 the bytes in cpumask to a bitmask and uses SetThreadAffinityMask() which
101 The mask_size specifies the number of entries (bytes) in cpumask / oldmask,
109 .. c:function:: int uv_thread_getaffinity(uv_thread_t* tid, char* cpumask, size_t mask_size)
112 cpu_set_t returned by :man:`pthread_getaffinity_np(3)` to bytes in cpumask.
114 The mask_size specifies the number of entries (bytes) in cpumask,
/libuv/src/win/
H A Dthread.c162 char* cpumask, in uv_thread_setaffinity() argument
184 if (cpumask[i]) { in uv_thread_setaffinity()
205 char* cpumask, in uv_thread_getaffinity() argument
228 cpumask[i] = (threadmask >> i) & 1; in uv_thread_getaffinity()
/libuv/src/unix/
H A Dthread.c183 char* cpumask, in uv_thread_setaffinity() argument
205 if (cpumask[i]) in uv_thread_setaffinity()
222 char* cpumask, in uv_thread_getaffinity() argument
247 cpumask[i] = !!CPU_ISSET(i, &cpuset); in uv_thread_getaffinity()
253 char* cpumask, in uv_thread_setaffinity() argument
261 char* cpumask, in uv_thread_getaffinity() argument
/libuv/include/
H A Duv.h1892 char* cpumask,
1896 char* cpumask,

Completed in 31 milliseconds