Fixes of various issues introduced by refactoring.

This commit is contained in:
Igor Sysoev
2017-01-31 22:26:53 +03:00
parent 18281ee37e
commit d4d36c65fa
3 changed files with 25 additions and 9 deletions

View File

@@ -193,7 +193,7 @@ nxt_thread_exit(nxt_thread_t *thr)
* and link->task is already set to engine->task.
* The link should be freed by the exit handler.
*/
link->work.obj = thr->handle;
link->work.obj = (void *) (uintptr_t) thr->handle;
nxt_event_engine_post(link->engine, &link->work);
}