diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
commit | de532922d9ab42aa15b40d47c8db53ac2af38500 (patch) | |
tree | d6b7c6b21c7a6e0e3620a3e0c7198e63454d05e3 /src/nxt_thread.c | |
parent | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff) | |
download | unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2 |
Introducing tasks.
Diffstat (limited to 'src/nxt_thread.c')
-rw-r--r-- | src/nxt_thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_thread.c b/src/nxt_thread.c index 415253c0..680412c2 100644 --- a/src/nxt_thread.c +++ b/src/nxt_thread.c @@ -184,8 +184,9 @@ nxt_thread_exit(nxt_thread_t *thr) if (thr->link != NULL) { nxt_event_engine_post(thr->link->engine, thr->link->exit, - (void *) (uintptr_t) thr->handle, NULL, - &nxt_main_log); + &thr->link->engine->task, + (void *) (uintptr_t) thr->handle, + NULL, &nxt_main_log); nxt_free(thr->link); thr->link = NULL; |