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] |
sem_getvalue()?
I
don't see that in the standard (POSIX.1b (POSIX 1003.1b-1993))... I assume
this
has
been added to the pthreads-win32 implementation as an extension
(Ross?)
Perhaps there is a bug in that new method.
However, try looping over sem_trywait and count the # of times it returns
0. It should return EAGAIN
when
the semaphore count is zero.
Sorry,
I can't help you with the sem_getvalue....
Note
that since the sem_ calls are from an earlier standard, that when they fail they
are supposed
to
return -1 and set errno to the actual error number....
John.
This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. |
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |