summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:17 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:17 +0300
commit8ad2c3fd3ad30982c4f777622c3392f047cc8191 (patch)
tree48cf79fd186b0c116223c78e9c8905c9f9085930 /src/nxt_event_engine.h
parent803855138c3b714c088e42a32e80939a81785944 (diff)
downloadunit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.gz
unit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.bz2
Work queue thread assertions. Reset thread after fork.
Diffstat (limited to 'src/nxt_event_engine.h')
-rw-r--r--src/nxt_event_engine.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h
index d8741669..6c0adafd 100644
--- a/src/nxt_event_engine.h
+++ b/src/nxt_event_engine.h
@@ -531,5 +531,15 @@ nxt_thread_event_engine(void)
return thr->engine;
}
+#if (NXT_DEBUG)
+
+NXT_EXPORT void nxt_event_engine_thread_adopt(nxt_event_engine_t *engine);
+
+#else
+
+#define nxt_event_engine_thread_adopt(_engine)
+
+#endif
+
#endif /* _NXT_EVENT_ENGINE_H_INCLUDED_ */