summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-18 20:05:13 -0600
committerTom Tromey <tromey@redhat.com>2012-08-18 20:05:13 -0600
commitee1464eab19311ab7708b135bdb6eb989909e4cc (patch)
tree39d00fd15764aa8b573f1739f7f0e20e24441ef1 /src/thread.h
parentb3c78ffa31af4fb96cc18da887e2f2a1e68f5e09 (diff)
downloademacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.tar.gz
emacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.tar.bz2
emacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.zip
comment fixes
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h
index 32ef48f63ff..6b66ea4d1c3 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -187,7 +187,7 @@ struct thread_state
struct thread_state *next_thread;
};
-/* A mutex in lisp is represented by a pthread condition variable.
+/* A mutex in lisp is represented by a system condition variable.
The system mutex associated with this condition variable is the
global lock.
@@ -195,17 +195,23 @@ struct thread_state
lisp mutexes. */
typedef struct
{
+ /* The owning thread, or NULL if unlocked. */
struct thread_state *owner;
+ /* The lock count. */
unsigned int count;
+ /* The underlying system condition variable. */
sys_cond_t condition;
} lisp_mutex_t;
+/* A mutex as a lisp object. */
struct Lisp_Mutex
{
struct vectorlike_header header;
+ /* The name of the mutex, or nil. */
Lisp_Object name;
+ /* The lower-level mutex object. */
lisp_mutex_t mutex;
};