mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Merge remote-tracking branch 'ellzey/debug_timer_add_usec'
This commit is contained in:
commit
14ec20a7a3
6
event.c
6
event.c
@ -2087,8 +2087,8 @@ event_add_internal(struct event *ev, const struct timeval *tv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
event_debug((
|
event_debug((
|
||||||
"event_add: timeout in %d seconds, call %p",
|
"event_add: timeout in %d seconds %d useconds, call %p",
|
||||||
(int)tv->tv_sec, ev->ev_callback));
|
(int)tv->tv_sec, (int)tv->tv_usec, ev->ev_callback));
|
||||||
|
|
||||||
event_queue_reinsert_timeout(base, ev);
|
event_queue_reinsert_timeout(base, ev);
|
||||||
|
|
||||||
@ -2348,7 +2348,7 @@ timeout_next(struct event_base *base, struct timeval **tv_p)
|
|||||||
|
|
||||||
EVUTIL_ASSERT(tv->tv_sec >= 0);
|
EVUTIL_ASSERT(tv->tv_sec >= 0);
|
||||||
EVUTIL_ASSERT(tv->tv_usec >= 0);
|
EVUTIL_ASSERT(tv->tv_usec >= 0);
|
||||||
event_debug(("timeout_next: in %d seconds", (int)tv->tv_sec));
|
event_debug(("timeout_next: in %d seconds, %d useconds", (int)tv->tv_sec, (int)tv->tv_usec));
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return (res);
|
return (res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user