SYNOPSIS
#include <semaphore.h>
int sem_getvalue(sem_t *sem, int *sval);
DESCRIPTION
The
If the specified semaphore (sem) is locked,
PARAMETERS
- sem
-
Specifies the semaphore whose value is used to update a memory location.
- sval
-
Specifies the memory location whose value is to be updated by this function.
RETURN VALUES
When successful, the
EXAMPLES
None.
CONFORMANCE
UNIX 03. Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
sem_post() ,sem_trywait() ,sem_wait() ,semctl() ,semget() ,semop()
- Miscellaneous:
- semaphores
PTC MKS Toolkit 10.4 Documentation Build 39.