]> git.eshelyaron.com Git - emacs.git/commitdiff
comment fixes
authorTom Tromey <tromey@redhat.com>
Sun, 19 Aug 2012 02:05:13 +0000 (20:05 -0600)
committerTom Tromey <tromey@redhat.com>
Sun, 19 Aug 2012 02:05:13 +0000 (20:05 -0600)
src/thread.h

index 32ef48f63ff5b31411cddc7aca40cc2792927f42..6b66ea4d1c37a186b5710f3da488c897452e7ee4 100644 (file)
@@ -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;
 };