Work queue thread assertions. Reset thread after fork.

This commit is contained in:
Max Romanov
2017-07-18 00:21:17 +03:00
parent 803855138c
commit 8ad2c3fd3a
6 changed files with 54 additions and 3 deletions

View File

@@ -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_ */