nxt_thread_pool.c (157:38ae841c09ae) nxt_thread_pool.c (494:7c83ddcc1c42)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 219 unchanged lines hidden (view full) ---

228
229void
230nxt_thread_pool_destroy(nxt_thread_pool_t *tp)
231{
232 nxt_thread_t *thr;
233
234 thr = nxt_thread();
235
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 219 unchanged lines hidden (view full) ---

228
229void
230nxt_thread_pool_destroy(nxt_thread_pool_t *tp)
231{
232 nxt_thread_t *thr;
233
234 thr = nxt_thread();
235
236 nxt_log_debug(thr->log, "thread pool destroy: %d", tp->ready);
236 nxt_log_debug(thr->log, "thread pool destroy: %A", tp->ready);
237
238 if (!tp->ready) {
239 nxt_work_queue_add(&thr->engine->fast_work_queue, tp->exit,
240 &tp->engine->task, tp, NULL);
241 return;
242 }
243
244 if (tp->max_threads != 0) {

--- 66 unchanged lines hidden ---
237
238 if (!tp->ready) {
239 nxt_work_queue_add(&thr->engine->fast_work_queue, tp->exit,
240 &tp->engine->task, tp, NULL);
241 return;
242 }
243
244 if (tp->max_threads != 0) {

--- 66 unchanged lines hidden ---