summaryrefslogtreecommitdiff
path: root/src/atimer.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2009-01-30 13:06:07 +0000
committerJuanma Barranquero <lekktu@gmail.com>2009-01-30 13:06:07 +0000
commit07a1e794413237cc72419a965ad88f0592a69e9c (patch)
tree5df68d813475b49eba7095469780cb3294e03a48 /src/atimer.c
parent5e36bc052b3bec251684eee0db8bfed9f9cca342 (diff)
downloademacs-07a1e794413237cc72419a965ad88f0592a69e9c.tar.gz
* atimer.c (run_timers, alarm_signal_handler):
* keyboard.c (pending_signals, handle_async_input, init_keyboard): * w32inevt.c (w32_console_read_socket): * w32term.c (w32_read_socket): * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
Diffstat (limited to 'src/atimer.c')
-rw-r--r--src/atimer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/atimer.c b/src/atimer.c
index 6767ee59c0e..1653b629abf 100644
--- a/src/atimer.c
+++ b/src/atimer.c
@@ -384,6 +384,7 @@ run_timers ()
EMACS_GET_TIME (now);
}
+#ifdef SYNC_INPUT
if (pending_atimers)
pending_signals = 1;
else
@@ -391,6 +392,10 @@ run_timers ()
pending_signals = interrupt_input_pending;
set_alarm ();
}
+#else
+ if (! pending_atimers)
+ set_alarm ();
+#endif
}
@@ -402,8 +407,9 @@ alarm_signal_handler (signo)
int signo;
{
pending_atimers = 1;
+#ifdef SYNC_INPUT
pending_signals = 1;
-#ifndef SYNC_INPUT
+#else
run_timers ();
#endif
}