diff options
| author | Tom Tromey | 2012-08-15 13:14:14 -0600 |
|---|---|---|
| committer | Tom Tromey | 2012-08-15 13:14:14 -0600 |
| commit | 8d3566c6a0eb3977c3115ae100a357f8d63cf77e (patch) | |
| tree | 7343b2236bdf20d5026483eb7f4dc15b76ee331a /src/thread.h | |
| parent | fc196ac95224330384227da8f5706631701e3610 (diff) | |
| download | emacs-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.h | 9 |
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 | ||
| 171 | struct Lisp_Mutex; | 171 | struct Lisp_Mutex |
| 172 | { | ||
| 173 | struct vectorlike_header header; | ||
| 174 | |||
| 175 | Lisp_Object name; | ||
| 176 | |||
| 177 | lisp_mutex_t mutex; | ||
| 178 | }; | ||
| 172 | 179 | ||
| 173 | extern struct thread_state *current_thread; | 180 | extern struct thread_state *current_thread; |
| 174 | 181 | ||