FW: sem_getvalue()

Alexander Terekhov TEREKHOV@de.ibm.com
Thu Sep 9 13:55:00 GMT 2004


> "The updated value represents an actual semaphore value..."

Semaphore value is either zero or positive. See XBD. Reporting 
number of waiters as negative value is "optional" and you shall
not rely on this feature. As I said, stay away from semas (if
you have a choice).

regards,
alexander.



More information about the Pthreads-win32 mailing list