Mercurial > emacs
changeset 59078:867a7d5055b2
* keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
before touching input_available_clear_time, to avoid accessing it
from multiple threads.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Thu, 23 Dec 2004 22:17:56 +0000 |
parents | 294a7f7e3daf |
children | 5070d12d24ad |
files | src/ChangeLog src/keyboard.c |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <jan.h.d@swipnet.se> + + * 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 <jasonr@gnu.org> * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
--- 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