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_work_queue.h | |
parent | 803855138c3b714c088e42a32e80939a81785944 (diff) | |
download | unit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.gz unit-8ad2c3fd3ad30982c4f777622c3392f047cc8191.tar.bz2 |
Work queue thread assertions. Reset thread after fork.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_work_queue.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nxt_work_queue.h b/src/nxt_work_queue.h index 9819882e..9694bfd2 100644 --- a/src/nxt_work_queue.h +++ b/src/nxt_work_queue.h @@ -104,15 +104,16 @@ NXT_EXPORT nxt_work_handler_t nxt_work_queue_pop(nxt_work_queue_t *wq, #if (NXT_DEBUG) -#define \ -nxt_work_queue_name(_wq, _name) \ - (_wq)->name = _name +NXT_EXPORT void nxt_work_queue_name(nxt_work_queue_t *wq, const char* name); +NXT_EXPORT void nxt_work_queue_thread_adopt(nxt_work_queue_t *wq); #else #define \ nxt_work_queue_name(_wq, _name) +#define nxt_work_queue_thread_adopt(_wq) + #endif |