summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_read.c
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_read.c
parent6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff)
downloadunit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz
unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2
Work queues refactoring.
Diffstat (limited to '')
-rw-r--r--src/nxt_event_conn_read.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nxt_event_conn_read.c b/src/nxt_event_conn_read.c
index f6bbbbd8..93a17ddc 100644
--- a/src/nxt_event_conn_read.c
+++ b/src/nxt_event_conn_read.c
@@ -20,8 +20,7 @@ nxt_event_conn_read(nxt_task_t *task, nxt_event_conn_t *c)
wq = &task->thread->engine->read_work_queue;
c->socket.read_work_queue = wq;
- nxt_thread_work_queue_add(task->thread, wq, handler, task, c,
- c->socket.data);
+ nxt_work_queue_add( wq, handler, task, c, c->socket.data);
return;
}
@@ -134,8 +133,8 @@ ready:
done:
if (batch) {
- nxt_thread_work_queue_add(task->thread, c->read_work_queue, handler,
- task, c, data);
+ nxt_work_queue_add(c->read_work_queue, handler, task, c, data);
+
} else {
handler(task, c, data);
}