nxt_timer.c (388:b459d5aa0701) nxt_timer.c (494:7c83ddcc1c42)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 259 unchanged lines hidden (view full) ---

268 * timer may be larger than a disabled timer, but event poll may
269 * return much earlier and the disabled timer can be reactivated.
270 */
271
272 if (timer->state != NXT_TIMER_DISABLED) {
273 time = timer->time;
274 timers->minimum = time;
275
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 259 unchanged lines hidden (view full) ---

268 * timer may be larger than a disabled timer, but event poll may
269 * return much earlier and the disabled timer can be reactivated.
270 */
271
272 if (timer->state != NXT_TIMER_DISABLED) {
273 time = timer->time;
274 timers->minimum = time;
275
276 nxt_debug(timer->task, "timer found minimum: %M:%M",
276 nxt_debug(timer->task, "timer found minimum: %D:%M",
277 time, timers->now);
278
279 time = nxt_msec_diff(time, timers->now);
280
281 return (nxt_msec_t) nxt_max(time, 0);
282 }
283 }
284

--- 70 unchanged lines hidden ---
277 time, timers->now);
278
279 time = nxt_msec_diff(time, timers->now);
280
281 return (nxt_msec_t) nxt_max(time, 0);
282 }
283 }
284

--- 70 unchanged lines hidden ---