summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_timer.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-23 19:56:03 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-23 19:56:03 +0300
commitde532922d9ab42aa15b40d47c8db53ac2af38500 (patch)
treed6b7c6b21c7a6e0e3620a3e0c7198e63454d05e3 /src/nxt_event_timer.c
parent16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff)
downloadunit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz
unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2
Introducing tasks.
Diffstat (limited to 'src/nxt_event_timer.c')
-rw-r--r--src/nxt_event_timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_event_timer.c b/src/nxt_event_timer.c
index 29c225de..4a260705 100644
--- a/src/nxt_event_timer.c
+++ b/src/nxt_event_timer.c
@@ -141,8 +141,8 @@ nxt_event_timer_change(nxt_event_timers_t *timers, nxt_event_timer_t *ev,
void
nxt_event_timer_disable(nxt_event_timer_t *ev)
{
- nxt_log_debug(ev->log, "event timer disable: %D: %d:%M",
- ev->ident, ev->state, ev->time);
+ nxt_debug(ev->task, "event timer disable: %D: %d:%M",
+ ev->ident, ev->state, ev->time);
ev->state = NXT_EVENT_TIMER_DISABLED;
}
@@ -314,7 +314,7 @@ nxt_event_timer_expire(nxt_thread_t *thr, nxt_msec_t now)
ev->state = NXT_EVENT_TIMER_DISABLED;
nxt_thread_work_queue_add(thr, ev->work_queue, ev->handler,
- ev, NULL, ev->log);
+ ev->task, ev, NULL);
}
}
}