summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_connect.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_connect.c
parent6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff)
downloadunit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz
unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2
Work queues refactoring.
Diffstat (limited to 'src/nxt_event_conn_connect.c')
-rw-r--r--src/nxt_event_conn_connect.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nxt_event_conn_connect.c b/src/nxt_event_conn_connect.c
index 55554720..3a80b8d7 100644
--- a/src/nxt_event_conn_connect.c
+++ b/src/nxt_event_conn_connect.c
@@ -17,8 +17,8 @@ nxt_event_conn_connect(nxt_task_t *task, nxt_event_conn_t *c)
engine = task->thread->engine;
if (engine->batch != 0) {
- nxt_thread_work_queue_add(task->thread, &engine->socket_work_queue,
- nxt_event_conn_batch_socket, task, c, data);
+ nxt_work_queue_add(&engine->socket_work_queue,
+ nxt_event_conn_batch_socket, task, c, data);
return;
}
@@ -47,9 +47,8 @@ nxt_event_conn_batch_socket(nxt_task_t *task, void *obj, void *data)
handler = c->write_state->error_handler;
}
- nxt_thread_work_queue_add(task->thread,
- &task->thread->engine->connect_work_queue,
- handler, task, c, data);
+ nxt_work_queue_add(&task->thread->engine->connect_work_queue,
+ handler, task, c, data);
}