From: Tom Tromey Date: Sun, 19 Aug 2012 02:05:13 +0000 (-0600) Subject: comment fixes X-Git-Tag: emacs-26.0.90~1144^2~17^2~73 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee1464eab19311ab7708b135bdb6eb989909e4cc;p=emacs.git comment fixes --- 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; };