summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread_pool.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-27 11:35:11 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-27 11:35:11 +0300
commitba0391577b06446307fa073f856f57748557e0dd (patch)
treeb2b871a041edee242662c95197bed292531c3a9a /src/nxt_thread_pool.h
parent6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff)
downloadunit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz
unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2
Work queues refactoring.
Diffstat (limited to 'src/nxt_thread_pool.h')
-rw-r--r--src/nxt_thread_pool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_thread_pool.h b/src/nxt_thread_pool.h
index 75899a06..750b98f8 100644
--- a/src/nxt_thread_pool.h
+++ b/src/nxt_thread_pool.h
@@ -20,6 +20,7 @@ struct nxt_thread_pool_s {
nxt_sem_t sem;
nxt_nsec_t timeout;
+ nxt_work_t work;
nxt_task_t task;
nxt_locked_work_queue_t work_queue;
@@ -37,7 +38,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, nxt_task_t *task, void *obj, void *data);
+ nxt_work_t *work);
#endif /* _NXT_UNIX_THREAD_POOL_H_INCLUDED_ */