summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_event_engine.c')
-rw-r--r--src/nxt_event_engine.c16
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