diff options
| author | YAMAMOTO Mitsuharu | 2007-01-26 08:35:54 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-01-26 08:35:54 +0000 |
| commit | 86302e37c36884d68b7ba0de801abb2b372a84bd (patch) | |
| tree | b8bdd2a9a8c3c613f23dc770cf1c20bf51400d2a /src | |
| parent | 1408b0d5a921988f07912bbfe53d6f9251482ebc (diff) | |
| download | emacs-86302e37c36884d68b7ba0de801abb2b372a84bd.tar.gz emacs-86302e37c36884d68b7ba0de801abb2b372a84bd.zip | |
(BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
BLOCK_INPUT/UNBLOCK_INPUT.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 4 |
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; | |||
| 131 | do \ | 131 | do \ |
| 132 | { \ | 132 | { \ |
| 133 | if (pthread_equal (pthread_self (), main_thread)) \ | 133 | if (pthread_equal (pthread_self (), main_thread)) \ |
| 134 | sigblock (sigmask (SIGIO)); \ | 134 | BLOCK_INPUT; \ |
| 135 | pthread_mutex_lock (&alloc_mutex); \ | 135 | pthread_mutex_lock (&alloc_mutex); \ |
| 136 | } \ | 136 | } \ |
| 137 | while (0) | 137 | while (0) |
| @@ -140,7 +140,7 @@ static pthread_mutex_t alloc_mutex; | |||
| 140 | { \ | 140 | { \ |
| 141 | pthread_mutex_unlock (&alloc_mutex); \ | 141 | pthread_mutex_unlock (&alloc_mutex); \ |
| 142 | if (pthread_equal (pthread_self (), main_thread)) \ | 142 | if (pthread_equal (pthread_self (), main_thread)) \ |
| 143 | sigunblock (sigmask (SIGIO)); \ | 143 | UNBLOCK_INPUT; \ |
| 144 | } \ | 144 | } \ |
| 145 | while (0) | 145 | while (0) |
| 146 | 146 | ||