From de532922d9ab42aa15b40d47c8db53ac2af38500 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Jan 2017 19:56:03 +0300 Subject: Introducing tasks. --- src/nxt_thread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nxt_thread.c') 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; -- cgit