diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:17 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:17 +0300 |
commit | 8ad2c3fd3ad30982c4f777622c3392f047cc8191 (patch) | |
tree | 48cf79fd186b0c116223c78e9c8905c9f9085930 /src/nxt_event_engine.c | |
parent | 803855138c3b714c088e42a32e80939a81785944 (diff) | |
download | unit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.gz unit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.bz2 |
Work queue thread assertions. Reset thread after fork.
Diffstat (limited to 'src/nxt_event_engine.c')
-rw-r--r-- | src/nxt_event_engine.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nxt_event_engine.c b/src/nxt_event_engine.c index b91f0e50..2ec7df1e 100644 --- a/src/nxt_event_engine.c +++ b/src/nxt_event_engine.c @@ -660,3 +660,19 @@ nxt_event_engine_request_find_remove(nxt_event_engine_t *engine, return NULL; } + +#if (NXT_DEBUG) + +void nxt_event_engine_thread_adopt(nxt_event_engine_t *engine) +{ + nxt_work_queue_thread_adopt(&engine->fast_work_queue); + nxt_work_queue_thread_adopt(&engine->accept_work_queue); + nxt_work_queue_thread_adopt(&engine->read_work_queue); + nxt_work_queue_thread_adopt(&engine->socket_work_queue); + nxt_work_queue_thread_adopt(&engine->connect_work_queue); + nxt_work_queue_thread_adopt(&engine->write_work_queue); + nxt_work_queue_thread_adopt(&engine->shutdown_work_queue); + nxt_work_queue_thread_adopt(&engine->close_work_queue); +} + +#endif |