diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-18 20:05:13 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-18 20:05:13 -0600 |
commit | ee1464eab19311ab7708b135bdb6eb989909e4cc (patch) | |
tree | 39d00fd15764aa8b573f1739f7f0e20e24441ef1 /src/thread.h | |
parent | b3c78ffa31af4fb96cc18da887e2f2a1e68f5e09 (diff) | |
download | emacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.tar.gz emacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.tar.bz2 emacs-ee1464eab19311ab7708b135bdb6eb989909e4cc.zip |
comment fixes
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 8 |
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; }; |