USTESTSEMA(3P)USTESTSEMA(3P)NAMEustestsema - return the value of a semaphore
C SYNOPSIS
#include <ulocks.h>
int ustestsema (usema_t *sema);
DESCRIPTIONustestsema returns the current value of the semaphore specified by sema.
This should be viewed as a snapshot only, useful for debugging.
SEE ALSOusinitsema(3P), usnewsema(3P), uspsema(3P), uscpsema(3P), usvsema(3P).
DIAGNOSTICS
The current count of the semaphore is returned.
Page 1