Re: condition variable implementation question

2008-10-13 Thread Bruno Haible
After verifying that taking the lock after the bookkeeping (instead of before) does not break the testsuite, I committed this comment. > --- lib/glthread/cond.c.orig 2008-10-12 22:05:50.0 +0200 > +++ lib/glthread/cond.c 2008-10-12 21:30:47.0 +0200 > @@ -159,7 +159,8 @@ >

condition variable implementation question

2008-10-12 Thread Bruno Haible
Hi Yoann, Ben, or anyone interested in threading, Is this comment right or wrong? In glibc's implementation of the wait and timed_wait methods for condition variables, after returning from the blocking call, first the bookkeeping in the condition variable is completed, then finally the lock is ac