Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 11 of 11) sorted by relevance

/libuv/src/win/
H A Dthread.c95 return uv_thread_create_ex(tid, &params, entry, arg); in uv_thread_create()
98 int uv_thread_create_ex(uv_thread_t* tid, in uv_thread_create_ex() argument
142 *tid = thread; in uv_thread_create_ex()
161 int uv_thread_setaffinity(uv_thread_t* tid, in uv_thread_setaffinity() argument
192 oldthreadmask = SetThreadAffinityMask(*tid, threadmask); in uv_thread_setaffinity()
204 int uv_thread_getaffinity(uv_thread_t* tid, in uv_thread_getaffinity() argument
223 threadmask = SetThreadAffinityMask(*tid, procmask); in uv_thread_getaffinity()
255 int uv_thread_join(uv_thread_t *tid) { in uv_thread_join() argument
256 if (WaitForSingleObject(*tid, INFINITE)) in uv_thread_join()
259 CloseHandle(*tid); in uv_thread_join()
[all …]
H A Dutil.c1474 int uv_thread_getpriority(uv_thread_t tid, int* priority) { in uv_thread_getpriority() argument
1480 r = GetThreadPriority(tid); in uv_thread_getpriority()
1488 int uv_thread_setpriority(uv_thread_t tid, int priority) { in uv_thread_setpriority() argument
1493 r = SetThreadPriority(tid, THREAD_PRIORITY_HIGHEST); in uv_thread_setpriority()
1496 r = SetThreadPriority(tid, THREAD_PRIORITY_ABOVE_NORMAL); in uv_thread_setpriority()
1499 r = SetThreadPriority(tid, THREAD_PRIORITY_NORMAL); in uv_thread_setpriority()
1502 r = SetThreadPriority(tid, THREAD_PRIORITY_BELOW_NORMAL); in uv_thread_setpriority()
1505 r = SetThreadPriority(tid, THREAD_PRIORITY_LOWEST); in uv_thread_setpriority()
/libuv/src/unix/
H A Dthread.c126 return uv_thread_create_ex(tid, &params, entry, arg); in uv_thread_create()
129 int uv_thread_create_ex(uv_thread_t* tid, in uv_thread_create_ex() argument
172 err = pthread_create(tid, attr, f.out, arg); in uv_thread_create_ex()
182 int uv_thread_setaffinity(uv_thread_t* tid, in uv_thread_setaffinity() argument
198 r = uv_thread_getaffinity(tid, oldmask, mask_size); in uv_thread_setaffinity()
214 r = pthread_setaffinity_np(*tid, sizeof(cpuset), &cpuset); in uv_thread_setaffinity()
221 int uv_thread_getaffinity(uv_thread_t* tid, in uv_thread_getaffinity() argument
252 int uv_thread_setaffinity(uv_thread_t* tid, in uv_thread_setaffinity() argument
260 int uv_thread_getaffinity(uv_thread_t* tid, in uv_thread_getaffinity() argument
285 int uv_thread_join(uv_thread_t *tid) { in uv_thread_join() argument
[all …]
H A Dcore.c1577 int uv_thread_getpriority(uv_thread_t tid, int* priority) { in uv_thread_getpriority() argument
1588 r = pthread_getschedparam(tid, &policy, &param); in uv_thread_getpriority()
1593 if (SCHED_OTHER == policy && pthread_equal(tid, pthread_self())) { in uv_thread_getpriority()
1628 int uv_thread_setpriority(uv_thread_t tid, int priority) { in uv_thread_setpriority() argument
1641 r = pthread_getschedparam(tid, &policy, &param); in uv_thread_setpriority()
1650 if (SCHED_OTHER == policy && pthread_equal(tid, pthread_self())) in uv_thread_setpriority()
1689 r = pthread_setschedparam(tid, policy, &param); in uv_thread_setpriority()
/libuv/test/
H A Dbenchmark-thread.c43 uv_thread_t tid; in BENCHMARK_IMPL() local
49 r = uv_thread_create(&tid, thread_entry, (void *) 42); in BENCHMARK_IMPL()
52 r = uv_thread_join(&tid); in BENCHMARK_IMPL()
H A Dtest-thread-affinity.c33 uv_thread_t tid; in check_affinity() local
38 tid = uv_thread_self(); in check_affinity()
39 r = uv_thread_setaffinity(&tid, cpumask, NULL, cpumasksize); in check_affinity()
41 r = uv_thread_setaffinity(&tid, cpumask + cpumasksize, cpumask, cpumasksize); in check_affinity()
H A Dtest-thread.c147 uv_thread_t tid; in TEST_IMPL() local
150 r = uv_thread_create(&tid, thread_entry, (void *) 42); in TEST_IMPL()
153 r = uv_thread_join(&tid); in TEST_IMPL()
H A Drunner-unix.c242 pthread_t tid; in process_wait() local
282 r = pthread_create(&tid, &attr, dowait, &args); in process_wait()
342 if (pthread_join(tid, NULL)) in process_wait()
H A Dtest-ipc-send-recv.c174 uv_thread_t tid; in run_test() local
178 r = uv_thread_create(&tid, ipc_send_recv_helper_threadproc, (void *) 42); in run_test()
199 r = uv_thread_join(&tid); in run_test()
/libuv/docs/src/
H A Dthreading.rst77 .. c:function:: int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg)
81 .. c:function:: int uv_thread_create_ex(uv_thread_t* tid, const uv_thread_options_t* params, uv_thr…
91 .. c:function:: int uv_thread_setaffinity(uv_thread_t* tid, char* cpumask, char* oldmask, size_t ma…
109 .. c:function:: int uv_thread_getaffinity(uv_thread_t* tid, char* cpumask, size_t mask_size)
132 .. c:function:: int uv_thread_join(uv_thread_t *tid)
135 .. c:function:: int uv_thread_setpriority(uv_thread_t tid, int priority)
138 Sets the scheduling priority of the thread specified by tid. It requires elevated
143 .. c:function:: int uv_thread_getpriority(uv_thread_t tid, int* priority)
146 Retrieves the scheduling priority of the thread specified by tid. The value in the
/libuv/include/
H A Duv.h1331 UV_EXTERN int uv_thread_getpriority(uv_thread_t tid, int* priority);
1332 UV_EXTERN int uv_thread_setpriority(uv_thread_t tid, int priority);
1872 UV_EXTERN int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg);
1887 UV_EXTERN int uv_thread_create_ex(uv_thread_t* tid,
1891 UV_EXTERN int uv_thread_setaffinity(uv_thread_t* tid,
1895 UV_EXTERN int uv_thread_getaffinity(uv_thread_t* tid,
1900 UV_EXTERN int uv_thread_join(uv_thread_t *tid);

Completed in 32 milliseconds