]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: timerfd: fix overrun computation
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 21 Jan 2019 10:14:16 +0000 (11:14 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 21 Jan 2019 10:14:16 +0000 (11:14 +0100)
commitea99e9fdda42141ef1c2273943a33d3191d72844
treeeeb59b2dfebfe074a0e4538686a52fb723690757
parent6ed50a68a133e7e0c0d10e328bce94f98944dbe5
Cygwin: timerfd: fix overrun computation

- Drop erroneous initial computation of overrun count in settime
  for absolute non-realtime clocks.  It's repeated in thread_func
  and thus counted twice.

- Fix overrun computation for timestamp offsets being a multiple of
  the timer interval.  The timestamp has to be corrected after the
  first offset, otherwise the correction loop counts the intervals
  again.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/timerfd.cc
This page took 0.029528 seconds and 5 git commands to generate.