summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-01-26 08:35:54 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-01-26 08:35:54 +0000
commit86302e37c36884d68b7ba0de801abb2b372a84bd (patch)
treeb8bdd2a9a8c3c613f23dc770cf1c20bf51400d2a /src/alloc.c
parent1408b0d5a921988f07912bbfe53d6f9251482ebc (diff)
downloademacs-86302e37c36884d68b7ba0de801abb2b372a84bd.tar.gz
(BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
BLOCK_INPUT/UNBLOCK_INPUT.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f24d77f0519..5cf22eb62e7 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -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)