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_pool.h | |
parent | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff) | |
download | unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2 |
Introducing tasks.
Diffstat (limited to 'src/nxt_thread_pool.h')
-rw-r--r-- | src/nxt_thread_pool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_thread_pool.h b/src/nxt_thread_pool.h index eb359260..75899a06 100644 --- a/src/nxt_thread_pool.h +++ b/src/nxt_thread_pool.h @@ -20,6 +20,8 @@ struct nxt_thread_pool_s { nxt_sem_t sem; nxt_nsec_t timeout; + nxt_task_t task; + nxt_locked_work_queue_t work_queue; nxt_thread_handle_t main; @@ -35,7 +37,7 @@ NXT_EXPORT nxt_thread_pool_t *nxt_thread_pool_create(nxt_uint_t max_threads, nxt_event_engine_t *engine, nxt_work_handler_t exit); NXT_EXPORT void nxt_thread_pool_destroy(nxt_thread_pool_t *tp); NXT_EXPORT nxt_int_t nxt_thread_pool_post(nxt_thread_pool_t *tp, - nxt_work_handler_t handler, void *obj, void *data, nxt_log_t *log); + nxt_work_handler_t handler, nxt_task_t *task, void *obj, void *data); #endif /* _NXT_UNIX_THREAD_POOL_H_INCLUDED_ */ |