emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/alloc.c,v


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/alloc.c,v
Date: Thu, 11 Jan 2007 19:21:53 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jan Djärv <jhd>        07/01/11 19:21:53

Index: alloc.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/alloc.c,v
retrieving revision 1.405
retrieving revision 1.406
diff -u -b -r1.405 -r1.406
--- alloc.c     13 Nov 2006 08:20:28 -0000      1.405
+++ alloc.c     11 Jan 2007 19:21:53 -0000      1.406
@@ -130,8 +130,8 @@
 #define BLOCK_INPUT_ALLOC                       \
   do                                            \
     {                                           \
-      if (pthread_self () == main_thread)      \
-       BLOCK_INPUT;                            \
+      if (pthread_equal (pthread_self (), main_thread)) \
+        sigblock (sigmask (SIGIO));                     \
       pthread_mutex_lock (&alloc_mutex);       \
     }                                           \
   while (0)
@@ -139,8 +139,8 @@
   do                                            \
     {                                           \
       pthread_mutex_unlock (&alloc_mutex);     \
-      if (pthread_self () == main_thread)      \
-       UNBLOCK_INPUT;                          \
+      if (pthread_equal (pthread_self (), main_thread)) \
+        sigunblock (sigmask (SIGIO));                   \
     }                                           \
   while (0)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]