summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_accept.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_accept.c
parent6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff)
downloadunit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz
unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2
Work queues refactoring.
Diffstat (limited to 'src/nxt_event_conn_accept.c')
-rw-r--r--src/nxt_event_conn_accept.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_event_conn_accept.c b/src/nxt_event_conn_accept.c
index a1339235..27b5ac27 100644
--- a/src/nxt_event_conn_accept.c
+++ b/src/nxt_event_conn_accept.c
@@ -50,7 +50,7 @@ nxt_event_conn_listen(nxt_task_t *task, nxt_listen_socket_t *ls)
cls->socket.read_work_queue = &engine->accept_work_queue;
} else {
- cls->socket.read_work_queue = &task->thread->work_queue.main;
+ cls->socket.read_work_queue = &engine->fast_work_queue;
cls->batch = 1;
}
@@ -62,7 +62,7 @@ nxt_event_conn_listen(nxt_task_t *task, nxt_listen_socket_t *ls)
cls->listen = ls;
- cls->timer.work_queue = &task->thread->work_queue.main;
+ cls->timer.work_queue = &engine->fast_work_queue;
cls->timer.handler = nxt_event_conn_listen_timer_handler;
cls->timer.log = &nxt_main_log;
@@ -221,15 +221,15 @@ nxt_event_conn_accept(nxt_task_t *task, nxt_event_conn_listen_t *cls,
c->listen->handler(task, c, NULL);
} else {
- nxt_thread_work_queue_add(task->thread, c->write_work_queue,
- c->listen->handler, task, c, NULL);
+ nxt_work_queue_add(c->write_work_queue, c->listen->handler,
+ task, c, NULL);
}
next = nxt_event_conn_accept_next(task, cls);
if (next != NULL && cls->socket.read_ready) {
- nxt_thread_work_queue_add(task->thread, cls->socket.read_work_queue,
- cls->accept, task, cls, next);
+ nxt_work_queue_add(cls->socket.read_work_queue,
+ cls->accept, task, cls, next);
}
}