aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
authorTom Tromey2012-08-15 13:14:14 -0600
committerTom Tromey2012-08-15 13:14:14 -0600
commit8d3566c6a0eb3977c3115ae100a357f8d63cf77e (patch)
tree7343b2236bdf20d5026483eb7f4dc15b76ee331a /src/thread.h
parentfc196ac95224330384227da8f5706631701e3610 (diff)
downloademacs-8d3566c6a0eb3977c3115ae100a357f8d63cf77e.tar.gz
emacs-8d3566c6a0eb3977c3115ae100a357f8d63cf77e.zip
This adds names to mutexes. This seemed like a nice debugging
extension.
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h
index d3ec38a22b9..1a193b1e4ae 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -168,7 +168,14 @@ struct thread_state
168 struct thread_state *next_thread; 168 struct thread_state *next_thread;
169}; 169};
170 170
171struct Lisp_Mutex; 171struct Lisp_Mutex
172{
173 struct vectorlike_header header;
174
175 Lisp_Object name;
176
177 lisp_mutex_t mutex;
178};
172 179
173extern struct thread_state *current_thread; 180extern struct thread_state *current_thread;
174 181