diff src/alloc.c @ 75406:b176aeeb7253

(BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use BLOCK_INPUT/UNBLOCK_INPUT.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 26 Jan 2007 08:35:54 +0000
parents 3d45362f1d38
children a6fbfb6a0580 b8d9a391daf3 f83d17e1ace6
line wrap: on
line diff
--- a/src/alloc.c	Thu Jan 25 05:26:01 2007 +0000
+++ b/src/alloc.c	Fri Jan 26 08:35:54 2007 +0000
@@ -131,7 +131,7 @@
   do                                                    \
     {                                                   \
       if (pthread_equal (pthread_self (), main_thread)) \
-        sigblock (sigmask (SIGIO));                     \
+        BLOCK_INPUT;					\
       pthread_mutex_lock (&alloc_mutex);                \
     }                                                   \
   while (0)
@@ -140,7 +140,7 @@
     {                                                   \
       pthread_mutex_unlock (&alloc_mutex);              \
       if (pthread_equal (pthread_self (), main_thread)) \
-        sigunblock (sigmask (SIGIO));                   \
+        UNBLOCK_INPUT;					\
     }                                                   \
   while (0)