USTESTSEMA(3P) USTESTSEMA(3P)
ustestsema - return the value of a semaphore
#include <ulocks.h>
int ustestsema (usema_t *sema);
ustestsema returns the current value of the semaphore specified by sema.
This should be viewed as a snapshot only, useful for debugging.
usinitsema(3P), usnewsema(3P), uspsema(3P), uscpsema(3P), usvsema(3P).
The current count of the semaphore is returned.
PPPPaaaaggggeeee 1111 [ Back ]
|