From b0cde09bfb5bde777bf50afc72a59e413a4d0b00 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 14 Oct 2008 03:54:08 +0200 Subject: [PATCH] Add a comment. --- ChangeLog | 5 +++++ lib/glthread/cond.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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. */ -- 2.11.0