diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-27 11:35:11 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-27 11:35:11 +0300 |
commit | ba0391577b06446307fa073f856f57748557e0dd (patch) | |
tree | b2b871a041edee242662c95197bed292531c3a9a /src/nxt_event_conn_read.c | |
parent | 6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff) | |
download | unit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2 |
Work queues refactoring.
Diffstat (limited to 'src/nxt_event_conn_read.c')
-rw-r--r-- | src/nxt_event_conn_read.c | 7 |
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); } |