Add a comment.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Oct 2008 01:54:08 +0000 (03:54 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 14 Oct 2008 01:54:08 +0000 (03:54 +0200)
ChangeLog
lib/glthread/cond.c

index 66ffaa5..8d97d64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glthread/cond.c (glthread_cond_wait_func,
+       glthread_cond_timedwait_func): Add a comment.
+
 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
 
        * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
index fe023f8..8c5d9b1 100644 (file)
@@ -159,7 +159,8 @@ glthread_cond_wait_func (gl_cond_t *cond, gl_lock_t *lock)
              break;
          }
 
-       /* Take the lock again.  */
+       /* Take the lock again.  It does not matter whether this is done
+          before or after the bookkeeping.  */
        err = glthread_lock_lock (lock);
 
        /* Do the bookkeeping.  */
@@ -285,7 +286,8 @@ glthread_cond_timedwait_func (gl_cond_t *cond, gl_lock_t *lock, struct timespec
              break;
          }
 
-       /* Take the lock again.  */
+       /* Take the lock again.  It does not matter whether this is done
+          before or after the bookkeeping.  */
        err = glthread_lock_lock (lock);
 
        /* Do the bookkeeping.  */