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:
parent
5b23a8e831
commit
a75bd958b4
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue