From: Bruno Haible Date: Tue, 14 Oct 2008 01:54:08 +0000 (+0200) Subject: Add a comment. X-Git-Tag: v0.1~6844 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b0cde09bfb5bde777bf50afc72a59e413a4d0b00;p=gnulib.git Add a comment. --- diff --git a/ChangeLog b/ChangeLog index 66ffaa59c..8d97d6429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-13 Bruno Haible + + * lib/glthread/cond.c (glthread_cond_wait_func, + glthread_cond_timedwait_func): Add a comment. + 2008-10-13 Yoann Vandoorselaere * tests/test-poll.c: Include , for ioctl(). diff --git a/lib/glthread/cond.c b/lib/glthread/cond.c index fe023f807..8c5d9b1fa 100644 --- a/lib/glthread/cond.c +++ b/lib/glthread/cond.c @@ -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. */