summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn.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_event_conn.h
parent6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff)
downloadunit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz
unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2
Work queues refactoring.
Diffstat (limited to 'src/nxt_event_conn.h')
-rw-r--r--src/nxt_event_conn.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nxt_event_conn.h b/src/nxt_event_conn.h
index c35dcf42..0140664b 100644
--- a/src/nxt_event_conn.h
+++ b/src/nxt_event_conn.h
@@ -192,7 +192,7 @@ typedef struct {
nxt_event_conn_io_handle(thr, wq, handler, task, c, data) \
do { \
if (thr->engine->batch != 0) { \
- nxt_thread_work_queue_add(thr, wq, handler, task, c, data); \
+ nxt_work_queue_add(wq, handler, task, c, data); \
\
} else { \
handler(task, c, data); \
@@ -301,9 +301,8 @@ NXT_EXPORT void nxt_event_conn_job_sendfile(nxt_task_t *task,
#define \
nxt_event_conn_connect_enqueue(thr, task, c) \
- nxt_thread_work_queue_add(thr, &thr->engine->socket_work_queue, \
- nxt_event_conn_batch_socket, \
- task, c, c->socket.data)
+ nxt_work_queue_add(&thr->engine->socket_work_queue, \
+ nxt_event_conn_batch_socket, task, c, c->socket.data)
#define \
@@ -311,8 +310,8 @@ nxt_event_conn_read_enqueue(thr, task, c) \
do { \
c->socket.read_work_queue = &thr->engine->read_work_queue; \
\
- nxt_thread_work_queue_add(thr, &thr->engine->read_work_queue, \
- c->io->read, task, c, c->socket.data); \
+ nxt_work_queue_add(&thr->engine->read_work_queue, \
+ c->io->read, task, c, c->socket.data); \
} while (0)
@@ -321,8 +320,8 @@ nxt_event_conn_write_enqueue(thr, task, c) \
do { \
c->socket.write_work_queue = &thr->engine->write_work_queue; \
\
- nxt_thread_work_queue_add(thr, &thr->engine->write_work_queue, \
- c->io->write, task, c, c->socket.data); \
+ nxt_work_queue_add(&thr->engine->write_work_queue, \
+ c->io->write, task, c, c->socket.data); \
} while (0)