Magic number MAX_BLOCKTIME
龙第九子
physacco at gmail.com
Sun Dec 11 07:11:32 CET 2011
Hi,
I've been using libev for some time and it works great. Then I got a
timeout and strace said:
epoll_wait(4, {{EPOLLIN, {u32=5, u64=42949672965}}}, 64, 59743) = 1
The timeout time was exactly 59743 milliseconds. It's a constant
defined in ev.c:
Revision 1.120:
#define MAX_BLOCKTIME 59.743 /* never wait longer than this time
(to detect time jumps) */
Revision 1.119:
#define MAX_BLOCKTIME 59.731 /* never wait longer than this time
(to detect time jumps) */
Could you tell me how these values are determined? If I may ask.
Many thanks,
Physacco
More information about the libev
mailing list