You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing some tests I realized that if the tick is initialized before the first NTP synchronization, then the next diff is off, and the dispatch loop just hangs "forever" (in the case where events are already in the queue at least).
This is because the posix implementation uses gettimeofday, which is affected by NTP.
For me the solution was to use create a equeue_posix_monotonic.c and use clock_gettime, as in this patch:
Doing some tests I realized that if the
tick
is initialized before the first NTP synchronization, then the next diff is off, and the dispatch loop just hangs "forever" (in the case where events are already in the queue at least).This is because the posix implementation uses
gettimeofday
, which is affected by NTP.For me the solution was to use create a
equeue_posix_monotonic.c
and useclock_gettime
, as in this patch:Maybe something like this should be better:
Let me know if this patch is something you'd be willing to include in the lib.
Thanks for
equeue
by the way !The text was updated successfully, but these errors were encountered: