From bd55c35cc18353ce75a4661c3a06e9a7bb88ccf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Thu, 23 Dec 2004 22:17:56 +0000 Subject: [PATCH] * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK before touching input_available_clear_time, to avoid accessing it from multiple threads. --- src/ChangeLog | 6 ++++++ src/keyboard.c | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5030c115d35..83419a166a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/keyboard.c b/src/keyboard.c index f5ca087227d..1c6f3f7c5f5 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -6841,14 +6841,16 @@ input_available_signal (signo) 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 -- 2.39.5