diff options
| author | Ken Brown | 2021-11-11 15:09:24 -0500 |
|---|---|---|
| committer | Ken Brown | 2021-11-12 15:04:49 -0500 |
| commit | e4f8ce78183e95bfbe649fb2ac43f3fe3492c782 (patch) | |
| tree | 3f3e9fda91a0ccc424225f52f77e14685aa5f029 | |
| parent | 974192413f8a81171b8fd28dfd5c081ce06d3dec (diff) | |
| download | emacs-e4f8ce78183e95bfbe649fb2ac43f3fe3492c782.tar.gz emacs-e4f8ce78183e95bfbe649fb2ac43f3fe3492c782.zip | |
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)
| -rw-r--r-- | src/atimer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/atimer.c b/src/atimer.c index 490c21bff16..9bde9c2446f 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -316,6 +316,13 @@ set_alarm (void) | |||
| 316 | exit = true; | 316 | exit = true; |
| 317 | } | 317 | } |
| 318 | # endif | 318 | # endif |
| 319 | |||
| 320 | # ifdef CYGWIN | ||
| 321 | /* Don't start both timerfd and alarms on Cygwin; this | ||
| 322 | causes a slowdown (bug#51734). */ | ||
| 323 | if (exit) | ||
| 324 | return; | ||
| 325 | # endif | ||
| 319 | if (alarm_timer_ok | 326 | if (alarm_timer_ok |
| 320 | && timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0) | 327 | && timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0) |
| 321 | exit = true; | 328 | exit = true; |