]> git.eshelyaron.com Git - emacs.git/commitdiff
(BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 26 Jan 2007 08:35:54 +0000 (08:35 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 26 Jan 2007 08:35:54 +0000 (08:35 +0000)
BLOCK_INPUT/UNBLOCK_INPUT.

src/alloc.c

index f24d77f0519b92dff7e46f638fb582942efa91da..5cf22eb62e77ee318dcb96afb69b5eb90cead1cf 100644 (file)
@@ -131,7 +131,7 @@ static pthread_mutex_t alloc_mutex;
   do                                                    \
     {                                                   \
       if (pthread_equal (pthread_self (), main_thread)) \
-        sigblock (sigmask (SIGIO));                     \
+        BLOCK_INPUT;                                   \
       pthread_mutex_lock (&alloc_mutex);                \
     }                                                   \
   while (0)
@@ -140,7 +140,7 @@ static pthread_mutex_t alloc_mutex;
     {                                                   \
       pthread_mutex_unlock (&alloc_mutex);              \
       if (pthread_equal (pthread_self (), main_thread)) \
-        sigunblock (sigmask (SIGIO));                   \
+        UNBLOCK_INPUT;                                 \
     }                                                   \
   while (0)