Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 8 of 8) sorted by relevance

/unit/src/
H A Dnxt_thread_pool.c37 return tp; in nxt_thread_pool_create()
120 tp = ctx; in nxt_thread_pool_start()
139 tp = ctx; in nxt_thread_pool_loop()
181 err = nxt_sem_wait(&tp->sem, tp->timeout); in nxt_thread_pool_wait()
240 &tp->engine->task, tp, NULL); in nxt_thread_pool_destroy()
248 nxt_work_set(&tp->work, nxt_thread_pool_exit, &tp->task, tp, NULL); in nxt_thread_pool_destroy()
250 nxt_thread_pool_post(tp, &tp->work); in nxt_thread_pool_destroy()
289 nxt_work_set(&tp->work, nxt_thread_pool_exit, &tp->task, tp, in nxt_thread_pool_exit()
292 nxt_thread_pool_post(tp, &tp->work); in nxt_thread_pool_exit()
299 nxt_work_set(&tp->work, tp->exit, &tp->engine->task, tp, in nxt_thread_pool_exit()
[all …]
H A Dnxt_lib.c135 nxt_thread_pool_t *tp; in nxt_lib_stop()
139 tp = rt->thread_pools; in nxt_lib_stop()
140 rt->thread_pools = (tp != NULL) ? tp->next : NULL; in nxt_lib_stop()
144 if (tp == NULL) { in nxt_lib_stop()
148 nxt_thread_pool_destroy(tp); in nxt_lib_stop()
H A Dnxt_thread_pool.h39 NXT_EXPORT void nxt_thread_pool_destroy(nxt_thread_pool_t *tp);
40 NXT_EXPORT nxt_int_t nxt_thread_pool_post(nxt_thread_pool_t *tp,
H A Dnxt_select_engine.c287 struct timeval tv, *tp; in nxt_select_poll() local
290 tp = NULL; in nxt_select_poll()
295 tp = &tv; in nxt_select_poll()
316 &engine->u.select.work_write_fd_set, NULL, tp); in nxt_select_poll()
H A Dnxt_runtime.c659 nxt_thread_pool_t *thread_pool, **tp; in nxt_runtime_thread_pool_create() local
661 tp = nxt_array_add(rt->thread_pools); in nxt_runtime_thread_pool_create()
662 if (tp == NULL) { in nxt_runtime_thread_pool_create()
672 *tp = thread_pool; in nxt_runtime_thread_pool_create()
684 nxt_thread_pool_t **tp; in nxt_runtime_thread_pool_destroy() local
695 tp = rt->thread_pools->elts; in nxt_runtime_thread_pool_destroy()
698 nxt_thread_pool_destroy(*tp); in nxt_runtime_thread_pool_destroy()
700 tp++; in nxt_runtime_thread_pool_destroy()
720 tp = obj; in nxt_runtime_thread_pool_exit()
736 if (tp == thread_pools[i]) { in nxt_runtime_thread_pool_exit()
[all …]
H A Dnxt_eventport_engine.c457 timespec_t ts, *tp; in nxt_eventport_poll() local
470 tp = NULL; in nxt_eventport_poll()
475 tp = &ts; in nxt_eventport_poll()
497 engine->u.eventport.mevents, &nevents, tp); in nxt_eventport_poll()
H A Dnxt_gnutls.c29 time_t nxt_gnutls_time(time_t *tp);
123 nxt_gnutls_time(time_t *tp) in nxt_gnutls_time() argument
133 if (tp != NULL) { in nxt_gnutls_time()
134 *tp = t; in nxt_gnutls_time()
H A Dnxt_kqueue_engine.c675 struct timespec ts, *tp; in nxt_kqueue_poll() local
681 tp = NULL; in nxt_kqueue_poll()
686 tp = &ts; in nxt_kqueue_poll()
694 engine->u.kqueue.events, engine->u.kqueue.mevents, tp); in nxt_kqueue_poll()