diff options
| author | Miles Bader | 2006-08-28 04:33:45 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-08-28 04:33:45 +0000 |
| commit | d65dc2c390f866441935840580266c29e536fab1 (patch) | |
| tree | 7633b31d5733cff6c6a6cb5313e5803e8dfa3894 /src/alloc.c | |
| parent | e91a7588fd2ae02cc5f5538bd5590f0f56d08cd7 (diff) | |
| parent | 7e87f9d8aeae0f0ea926a16cf8ae75c6b26caaaf (diff) | |
| download | emacs-d65dc2c390f866441935840580266c29e536fab1.tar.gz emacs-d65dc2c390f866441935840580266c29e536fab1.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 399-413)
- Update from CVS
- Rcirc update from Ryan Yeske
- Merge from gnus--rel--5.10
- Miscellaneous tq-related fixes.
* gnus--rel--5.10 (patch 126-127)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-105
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/alloc.c b/src/alloc.c index 9cd87503c5a..94be9fa6132 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -130,27 +130,17 @@ static pthread_mutex_t alloc_mutex; | |||
| 130 | #define BLOCK_INPUT_ALLOC \ | 130 | #define BLOCK_INPUT_ALLOC \ |
| 131 | do \ | 131 | do \ |
| 132 | { \ | 132 | { \ |
| 133 | if (!in_sighandler) \ | 133 | if (pthread_self () == main_thread) \ |
| 134 | { \ | 134 | BLOCK_INPUT; \ |
| 135 | pthread_mutex_lock (&alloc_mutex); \ | 135 | pthread_mutex_lock (&alloc_mutex); \ |
| 136 | if (pthread_self () == main_thread) \ | ||
| 137 | BLOCK_INPUT; \ | ||
| 138 | else \ | ||
| 139 | sigblock (sigmask (SIGIO)); \ | ||
| 140 | } \ | ||
| 141 | } \ | 136 | } \ |
| 142 | while (0) | 137 | while (0) |
| 143 | #define UNBLOCK_INPUT_ALLOC \ | 138 | #define UNBLOCK_INPUT_ALLOC \ |
| 144 | do \ | 139 | do \ |
| 145 | { \ | 140 | { \ |
| 146 | if (!in_sighandler) \ | 141 | pthread_mutex_unlock (&alloc_mutex); \ |
| 147 | { \ | 142 | if (pthread_self () == main_thread) \ |
| 148 | pthread_mutex_unlock (&alloc_mutex); \ | 143 | UNBLOCK_INPUT; \ |
| 149 | if (pthread_self () == main_thread) \ | ||
| 150 | UNBLOCK_INPUT; \ | ||
| 151 | else \ | ||
| 152 | sigunblock (sigmask (SIGIO)); \ | ||
| 153 | } \ | ||
| 154 | } \ | 144 | } \ |
| 155 | while (0) | 145 | while (0) |
| 156 | 146 | ||