]> git.eshelyaron.com Git - emacs.git/commitdiff
* atimer.c (run_timers, alarm_signal_handler):
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 30 Jan 2009 13:06:07 +0000 (13:06 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 30 Jan 2009 13:06:07 +0000 (13:06 +0000)
* 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.

src/ChangeLog
src/atimer.c
src/keyboard.c
src/w32inevt.c
src/w32term.c
src/xterm.c

index 67aa38209fc9e9e837ac13ae62d5791f70ddacde..91d39e7b5807eed00dcbe29e9aadb60c90f42d18 100644 (file)
@@ -1,3 +1,11 @@
+2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
+
+       * 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.
+
 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
 
        * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
index 6767ee59c0e1a8d2e3b6b1e9bad3ef6004fb1461..1653b629abfff8b4922fea8a9e5c1c53708990d6 100644 (file)
@@ -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
 }
index 8e3d51b7e77ee29e6781234b611d0b05593aae04..f3ebf9fdc968c1327889cc0fefcbba5d7e66eb9e 100644 (file)
@@ -96,7 +96,9 @@ int interrupt_input_pending;
    pending_atimers separately, to reduce code size.  So, any code that
    changes interrupt_input_pending or pending_atimers should update
    this too.  */
+#ifdef SYNC_INPUT
 int pending_signals;
+#endif
 
 #define KBD_BUFFER_SIZE 4096
 
@@ -7271,7 +7273,9 @@ void
 handle_async_input ()
 {
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
   pending_signals = pending_atimers;
+#endif
 
   while (1)
     {
@@ -11556,7 +11560,9 @@ init_keyboard ()
   input_pending = 0;
   interrupt_input_blocked = 0;
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
   pending_signals = 0;
+#endif
 
   /* This means that command_loop_1 won't try to select anything the first
      time through.  */
index 05f7bd224f743c22882724d04afa8dcc2c876fdf..7552ff17bb9e36acd6e4677a75884944cd12f433 100644 (file)
@@ -651,12 +651,16 @@ w32_console_read_socket (struct terminal *terminal,
   if (interrupt_input_blocked)
     {
       interrupt_input_pending = 1;
+#ifdef SYNC_INPUT
       pending_signals = 1;
+#endif
       return -1;
     }
 
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
   pending_signals = pending_atimers;
+#endif
   BLOCK_INPUT;
 
   for (;;)
index bcdadc4b22be054bf51b7f75a4835e72b937722b..6e2f9ffa4dcd7d6286e62c691bac63f2d0ee406d 100644 (file)
@@ -4078,12 +4078,16 @@ w32_read_socket (sd, expected, hold_quit)
   if (interrupt_input_blocked)
     {
       interrupt_input_pending = 1;
+#ifdef SYNC_INPUT
       pending_signals = 1;
+#endif
       return -1;
     }
 
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
   pending_signals = pending_atimers;
+#endif
   BLOCK_INPUT;
 
   /* So people can tell when we have read the available input.  */
index 1cd1ff059cf25f34c2b028d619bc5c2175aaffc2..00064758cdcc02556efe1216b1e7be3600aeec03 100644 (file)
@@ -7138,12 +7138,16 @@ XTread_socket (terminal, expected, hold_quit)
   if (interrupt_input_blocked)
     {
       interrupt_input_pending = 1;
+#ifdef SYNC_INPUT
       pending_signals = 1;
+#endif
       return -1;
     }
 
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
   pending_signals = pending_atimers;
+#endif
   BLOCK_INPUT;
 
   /* So people can tell when we have read the available input.  */