summaryrefslogtreecommitdiff
path: root/libguile/threads.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@oblong.net>2009-03-17 15:52:41 +0100
committerAndy Wingo <wingo@oblong.net>2009-03-17 15:52:41 +0100
commitfcbf843f56bf894f4899d39d494a5046e4a8f597 (patch)
treee5760278b98722c2c806b806fb0caf1e8159ef54 /libguile/threads.h
parentdeca2251b9d9128f62142b369a309caf05dbaa88 (diff)
parent8b0174c879bf74981efe702a00471ed5b8e6912e (diff)
downloadguile-fcbf843f56bf894f4899d39d494a5046e4a8f597.tar.gz
Merge commit '8b0174c879bf74981efe702a00471ed5b8e6912e' into vm-check
Diffstat (limited to 'libguile/threads.h')
-rw-r--r--libguile/threads.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libguile/threads.h b/libguile/threads.h
index a1d3c655a..8c2694d4d 100644
--- a/libguile/threads.h
+++ b/libguile/threads.h
@@ -72,6 +72,13 @@ typedef struct scm_i_thread {
*/
scm_i_pthread_mutex_t heap_mutex;
+ /* Boolean tracking whether the above mutex is currently locked by
+ this thread. This is equivalent to whether or not the thread is
+ in "Guile mode". This field doesn't need any protection because
+ it is only ever set or tested by the owning thread.
+ */
+ int heap_mutex_locked_by_self;
+
/* The freelists of this thread. Each thread has its own lists so
that they can all allocate concurrently.
*/