summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-15 13:14:14 -0600
committerTom Tromey <tromey@redhat.com>2012-08-15 13:14:14 -0600
commit8d3566c6a0eb3977c3115ae100a357f8d63cf77e (patch)
tree7343b2236bdf20d5026483eb7f4dc15b76ee331a /src/thread.h
parentfc196ac95224330384227da8f5706631701e3610 (diff)
downloademacs-8d3566c6a0eb3977c3115ae100a357f8d63cf77e.tar.gz
emacs-8d3566c6a0eb3977c3115ae100a357f8d63cf77e.tar.bz2
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
struct thread_state *next_thread;
};
-struct Lisp_Mutex;
+struct Lisp_Mutex
+{
+ struct vectorlike_header header;
+
+ Lisp_Object name;
+
+ lisp_mutex_t mutex;
+};
extern struct thread_state *current_thread;