Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 75405:32aaed4ed8da | 75406:b176aeeb7253 |
|---|---|
| 129 | 129 |
| 130 #define BLOCK_INPUT_ALLOC \ | 130 #define BLOCK_INPUT_ALLOC \ |
| 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) |
| 138 #define UNBLOCK_INPUT_ALLOC \ | 138 #define UNBLOCK_INPUT_ALLOC \ |
| 139 do \ | 139 do \ |
| 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 |
| 147 #else /* SYSTEM_MALLOC || not HAVE_GTK_AND_PTHREAD */ | 147 #else /* SYSTEM_MALLOC || not HAVE_GTK_AND_PTHREAD */ |
| 148 | 148 |
