# HG changeset patch # User Jan Dj¸«£rv # Date 1103840276 0 # Node ID 867a7d5055b29330356184cb740f158b33e8b07f # Parent 294a7f7e3daf353201e361f6ead5ee0f4c357b12 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK before touching input_available_clear_time, to avoid accessing it from multiple threads. diff -r 294a7f7e3daf -r 867a7d5055b2 src/ChangeLog --- a/src/ChangeLog Thu Dec 23 18:28:13 2004 +0000 +++ b/src/ChangeLog Thu Dec 23 22:17:56 2004 +0000 @@ -1,3 +1,9 @@ +2004-12-23 Jan Dj,Ad(Brv + + * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK + before touching input_available_clear_time, to avoid accessing it + from multiple threads. + 2004-12-23 Jason Rumney * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour diff -r 294a7f7e3daf -r 867a7d5055b2 src/keyboard.c --- a/src/keyboard.c Thu Dec 23 18:28:13 2004 +0000 +++ b/src/keyboard.c Thu Dec 23 22:17:56 2004 +0000 @@ -6841,14 +6841,16 @@ sigisheld (SIGIO); #endif - if (input_available_clear_time) - EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0); - #ifdef SYNC_INPUT interrupt_input_pending = 1; #else - SIGNAL_THREAD_CHECK (signo); +#endif + + if (input_available_clear_time) + EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0); + +#ifndef SYNC_INPUT handle_async_input (); #endif