Changeset 4148 for trunk/src/alloc.c
- Timestamp:
- 08/18/06 08:35:31 (2 years ago)
- Files:
-
- trunk/src/alloc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/alloc.c
r4140 r4148 131 131 do \ 132 132 { \ 133 pthread_mutex_lock (&alloc_mutex); \ 134 if (pthread_self () == main_thread) \ 135 BLOCK_INPUT; \ 133 if (!in_sighandler) \ 134 { \ 135 pthread_mutex_lock (&alloc_mutex); \ 136 if (pthread_self () == main_thread) \ 137 BLOCK_INPUT; \ 138 else \ 139 sigblock (sigmask (SIGIO)); \ 140 } \ 136 141 } \ 137 142 while (0) … … 139 144 do \ 140 145 { \ 141 if (pthread_self () == main_thread) \ 142 UNBLOCK_INPUT; \ 143 pthread_mutex_unlock (&alloc_mutex); \ 146 if (!in_sighandler) \ 147 { \ 148 pthread_mutex_unlock (&alloc_mutex); \ 149 if (pthread_self () == main_thread) \ 150 UNBLOCK_INPUT; \ 151 else \ 152 sigunblock (sigmask (SIGIO)); \ 153 } \ 144 154 } \ 145 155 while (0)
