diff options
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h index e6084b13c22..7dee67d6595 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -171,6 +171,13 @@ struct thread_state | |||
| 171 | interrupter should broadcast to this condition. */ | 171 | interrupter should broadcast to this condition. */ |
| 172 | sys_cond_t *wait_condvar; | 172 | sys_cond_t *wait_condvar; |
| 173 | 173 | ||
| 174 | /* This thread might have released the global lock. If so, this is | ||
| 175 | non-zero. When a thread runs outside thread_select with this | ||
| 176 | flag non-zero, it means it has been interrupted by SIGINT while | ||
| 177 | in thread_select, and didn't have a chance of acquiring the lock. | ||
| 178 | It must do so ASAP. */ | ||
| 179 | int not_holding_lock; | ||
| 180 | |||
| 174 | /* Threads are kept on a linked list. */ | 181 | /* Threads are kept on a linked list. */ |
| 175 | struct thread_state *next_thread; | 182 | struct thread_state *next_thread; |
| 176 | }; | 183 | }; |
| @@ -224,6 +231,7 @@ extern void unmark_threads (void); | |||
| 224 | extern void finalize_one_thread (struct thread_state *state); | 231 | extern void finalize_one_thread (struct thread_state *state); |
| 225 | extern void finalize_one_mutex (struct Lisp_Mutex *); | 232 | extern void finalize_one_mutex (struct Lisp_Mutex *); |
| 226 | extern void finalize_one_condvar (struct Lisp_CondVar *); | 233 | extern void finalize_one_condvar (struct Lisp_CondVar *); |
| 234 | extern void maybe_reacquire_global_lock (void); | ||
| 227 | 235 | ||
| 228 | extern void init_threads_once (void); | 236 | extern void init_threads_once (void); |
| 229 | extern void init_threads (void); | 237 | extern void init_threads (void); |