summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_job.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-23 19:56:03 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-23 19:56:03 +0300
commitde532922d9ab42aa15b40d47c8db53ac2af38500 (patch)
treed6b7c6b21c7a6e0e3620a3e0c7198e63454d05e3 /src/nxt_job.h
parent16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff)
downloadunit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz
unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2
Introducing tasks.
Diffstat (limited to 'src/nxt_job.h')
-rw-r--r--src/nxt_job.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_job.h b/src/nxt_job.h
index 320716ca..f1954b57 100644
--- a/src/nxt_job.h
+++ b/src/nxt_job.h
@@ -33,6 +33,8 @@
typedef struct {
void *data;
+ nxt_task_t task;
+
nxt_work_handler_t abort_handler;
uint16_t cache_size;
@@ -59,9 +61,9 @@ NXT_EXPORT void nxt_job_init(nxt_job_t *job, size_t size);
NXT_EXPORT void nxt_job_destroy(void *data);
NXT_EXPORT nxt_int_t nxt_job_cleanup_add(nxt_mem_pool_t *mp, nxt_job_t *job);
-NXT_EXPORT void nxt_job_start(nxt_thread_t *thr, nxt_job_t *job,
+NXT_EXPORT void nxt_job_start(nxt_task_t *task, nxt_job_t *job,
nxt_work_handler_t handler);
-NXT_EXPORT void nxt_job_return(nxt_thread_t *thr, nxt_job_t *job,
+NXT_EXPORT void nxt_job_return(nxt_task_t *task, nxt_job_t *job,
nxt_work_handler_t handler);