Cygwin: timerfd: reset expiry counter in settime

As on Linux, reset the expiry counter when the timer gets rearmed.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-01-21 22:54:26 +01:00
parent 5b23a8e831
commit a75bd958b4
1 changed files with 1 additions and 0 deletions

View File

@ -574,6 +574,7 @@ timerfd_shared::arm_timer (int flags, const struct itimerspec *new_value)
} }
set_exp_ts (ts); set_exp_ts (ts);
time_spec () = *new_value; time_spec () = *new_value;
read_and_reset_expiration_count ();
/* TODO: CLOCK_REALTIME_ALARM / CLOCK_BOOTTIME_ALARM /* TODO: CLOCK_REALTIME_ALARM / CLOCK_BOOTTIME_ALARM
Note: Advanced Power Settings -> Sleep -> Allow Wake Timers Note: Advanced Power Settings -> Sleep -> Allow Wake Timers
since W10 1709 */ since W10 1709 */