From: YAMAMOTO Mitsuharu Date: Fri, 26 Jan 2007 08:36:34 +0000 (+0000) Subject: (SIGNAL_THREAD_CHECK): Use pthread_equal. X-Git-Tag: emacs-pretest-22.0.94~622 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3fb8b536ddb9f41273b336a5a78a2a9063a8f8b7;p=emacs.git (SIGNAL_THREAD_CHECK): Use pthread_equal. --- diff --git a/src/ChangeLog b/src/ChangeLog index 80d9d85eff7..3bf6763f6b7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2007-01-26 YAMAMOTO Mitsuharu + + * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use + BLOCK_INPUT/UNBLOCK_INPUT. + + * blockinput.h (interrupt_input_blocked): Declare volatile. + + * keyboard.c (interrupt_input_blocked): Declare volatile. + + * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal. + 2007-01-24 Kim F. Storm * keymap.c (describe_map): Don't consider prefix keys to be shadowed. diff --git a/src/syssignal.h b/src/syssignal.h index a4e3fcb3e1b..36292670bc6 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -210,7 +210,7 @@ char *strsignal (); #ifdef HAVE_GTK_AND_PTHREAD #define SIGNAL_THREAD_CHECK(signo) \ do { \ - if (pthread_self () != main_thread) \ + if (!pthread_equal (pthread_self (), main_thread)) \ { \ /* POSIX says any thread can receive the signal. On GNU/Linux \ that is not true, but for other systems (FreeBSD at least) \