1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 11:33:09 -08:00

Don't start both timerfd and alarms on Cygwin

* src/atimer.c (set_alarm) [CYGWIN]: Don't start both timerfd and
alarms; this causes a slowdown.  (Bug#51734)
This commit is contained in:
Ken Brown 2021-11-11 15:09:24 -05:00
parent 974192413f
commit e4f8ce7818

View file

@ -316,6 +316,13 @@ set_alarm (void)
exit = true;
}
# endif
# ifdef CYGWIN
/* Don't start both timerfd and alarms on Cygwin; this
causes a slowdown (bug#51734). */
if (exit)
return;
# endif
if (alarm_timer_ok
&& timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0)
exit = true;