summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-31 22:26:50 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-31 22:26:50 +0300
commit18281ee37eaa9409a6af0aeb3c1926bba36cba0f (patch)
tree02c6421f40c6fe0b0a966e3f1e355da0a9b0fe4c /src/nxt_event_engine.c
parentbb87fa11ca65d1263a32f86d51d1daa89dc11544 (diff)
downloadunit-18281ee37eaa9409a6af0aeb3c1926bba36cba0f.tar.gz
unit-18281ee37eaa9409a6af0aeb3c1926bba36cba0f.tar.bz2
Event engine timers refactoring.
Diffstat (limited to '')
-rw-r--r--src/nxt_event_engine.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nxt_event_engine.c b/src/nxt_event_engine.c
index c40e8fa6..0765af71 100644
--- a/src/nxt_event_engine.c
+++ b/src/nxt_event_engine.c
@@ -525,17 +525,8 @@ nxt_event_engine_start(nxt_event_engine_t *engine)
engine->event->poll(&engine->task, engine->event_set, timeout);
- /*
- * Look up expired timers only if a new zero timer has been
- * just added before the event poll or if the event poll slept
- * at least 1 millisecond, because all old eligible timers were
- * processed in the previous iterations.
- */
-
now = nxt_thread_monotonic_time(thr) / 1000000;
- if (timeout == 0 || now != engine->timers.now) {
- nxt_timer_expire(thr, now);
- }
+ nxt_timer_expire(engine, now);
}
}