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:
parent
974192413f
commit
e4f8ce7818
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue