The mutex code (and usual futex users) use futex to implement mutual
exclusion. My goal is to send a wakeup signal to a thread waiting for
work to perform when adding such work. But without any mutual exclusion.
So it is understandable that glibc code or futex sample code does not
cover that, given this use is, well, creative. ;)
Yes.. this is heavily dependent on the states and values which can be
reached. I should probably take time to create a promela model and run
that though the spin model checker to be sure.
Thanks for the comments,
Mathieu
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--