Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_work_queue.c40 nxt_tid_t tid; in nxt_work_queue_thread_assert() local
44 tid = nxt_thread_tid(thread); in nxt_work_queue_thread_assert()
46 if (nxt_fast_path(wq->tid == tid)) { in nxt_work_queue_thread_assert()
52 wq->tid = tid; in nxt_work_queue_thread_assert()
57 nxt_log_alert(thread->log, "work queue locked by thread %PT", wq->tid); in nxt_work_queue_thread_assert()
69 wq->tid = nxt_thread_tid(thread); in nxt_work_queue_thread_adopt()
H A Dnxt_thread.c247 if (nxt_slow_path(thr->tid == 0)) { in nxt_thread_tid()
248 thr->tid = nxt_thread_get_tid(); in nxt_thread_tid()
251 return thr->tid; in nxt_thread_tid()
257 if (nxt_slow_path(thr->tid == 0)) { in nxt_thread_tid()
258 thr->tid = nxt_thread_get_tid(); in nxt_thread_tid()
261 return thr->tid; in nxt_thread_tid()
H A Dnxt_thread_id.h70 uint64_t tid; in nxt_thread_get_tid() local
72 (void) pthread_threadid_np(NULL, &tid); in nxt_thread_get_tid()
73 return tid; in nxt_thread_get_tid()
H A Dnxt_mp.c115 nxt_tid_t tid; member
203 nxt_tid_t tid; in nxt_mp_thread_assert() local
207 tid = nxt_thread_tid(thread); in nxt_mp_thread_assert()
209 if (nxt_fast_path(mp->tid == tid)) { in nxt_mp_thread_assert()
215 mp->tid = tid; in nxt_mp_thread_assert()
220 nxt_log_alert(thread->log, "mem_pool locked by thread %PT", mp->tid); in nxt_mp_thread_assert()
236 mp->tid = nxt_thread_tid(nxt_thread()); in nxt_mp_thread_adopt()
H A Dnxt_work_queue.h72 nxt_tid_t tid; member
H A Dnxt_thread.h140 nxt_tid_t tid; member
H A Dnxt_process.c264 task->thread->tid = 0; in nxt_process_child_fixup()
921 task->thread->tid = 0; in nxt_process_daemon()