This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: FW: sem_getvalue()


What's xbd?  I was looking at an appendix for a POSIX spec and it defined it non-optionally.

-----Original Message-----
From: Alexander Terekhov [mailto:TEREKHOV@de.ibm.com] 
Sent: Thursday, September 09, 2004 9:55 AM
To: Blanco Alejandro-EAB005
Cc: 'Ross Johnson'; pthreads-win32@sources.redhat.com
Subject: RE: FW: sem_getvalue()


> "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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]