Lines Matching refs:tid
123 int uv_thread_create(uv_thread_t *tid, void (*entry)(void *arg), void *arg) { in uv_thread_create() argument
126 return uv_thread_create_ex(tid, ¶ms, 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()
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()
221 int uv_thread_getaffinity(uv_thread_t* tid, in uv_thread_getaffinity() argument
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()
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
286 return UV__ERR(pthread_join(*tid, NULL)); in uv_thread_join()