aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h8
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);
224extern void finalize_one_thread (struct thread_state *state); 231extern void finalize_one_thread (struct thread_state *state);
225extern void finalize_one_mutex (struct Lisp_Mutex *); 232extern void finalize_one_mutex (struct Lisp_Mutex *);
226extern void finalize_one_condvar (struct Lisp_CondVar *); 233extern void finalize_one_condvar (struct Lisp_CondVar *);
234extern void maybe_reacquire_global_lock (void);
227 235
228extern void init_threads_once (void); 236extern void init_threads_once (void);
229extern void init_threads (void); 237extern void init_threads (void);