pthread_cond_broadcast and FUTEX_REQUEUE

Dinakar Guniguntala dgunigun at in.ibm.com
Tue May 18 07:10:54 UTC 2004





Ulrich,

I noticed that pthread_cond_broadcast still uses the FUTEX_REQUEUE
functionality in the latest CVS sources whereas this has been
removed in RHEL 3.0 update 2. Since there seems to be a testcase
that demonstrates this problem,
(http://bugme.osdl.org/show_bug.cgi?id=2364)
I was wondering if the fix will get into CVS as well.

I had also previously noted that another fix for this problem would be to
continue to use FUTEX_REQUEUE without releasing the internal
condvar lock to prevent corruption of the counters.

What are your thoughts on this

Regards,

Dinakar





More information about the Phil-list mailing list