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_fiber.c | |
parent | 6886b83c1f3bfdc514d58ad6e9ab40873cafcb54 (diff) | |
download | unit-ba0391577b06446307fa073f856f57748557e0dd.tar.gz unit-ba0391577b06446307fa073f856f57748557e0dd.tar.bz2 |
Work queues refactoring.
Diffstat (limited to 'src/nxt_fiber.c')
-rw-r--r-- | src/nxt_fiber.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_fiber.c b/src/nxt_fiber.c index a7b89402..f792897d 100644 --- a/src/nxt_fiber.c +++ b/src/nxt_fiber.c @@ -16,7 +16,7 @@ static void nxt_fiber_timer_handler(nxt_task_t *task, void *obj, void *data); #define \ nxt_fiber_enqueue(thr, task, fib) \ - nxt_thread_work_queue_add(thr, &(thr)->work_queue.main, \ + nxt_work_queue_add(&(thr)->engine->fast_work_queue, \ nxt_fiber_switch_handler, task, fib, NULL) @@ -392,7 +392,7 @@ nxt_fiber_sleep(nxt_task_t *task, nxt_msec_t timeout) fib = task->thread->fiber; - fib->timer.work_queue = &task->thread->work_queue.main; + fib->timer.work_queue = &task->thread->engine->fast_work_queue; fib->timer.handler = nxt_fiber_timer_handler; fib->timer.log = &nxt_main_log; |