unlock a mutex
int _lwp_mutex_unlock(lwp_mutex_t *mutex);
pointer to mutex to be unlocked
_lwp_mutex_unlock unlocks the mutex pointed to by mutex.
If there are one or more lightweight processes (LWPs) waiting for the mutex when
_lwp_mutex_unlock is called, at least one waiting LWP is
allowed to attempt acquisition of the mutex.
_lwp_mutex_unlock returns zero for success
and an error number for failure, as described below.
If any of the following conditions is detected,
_lwp_mutex_unlock fails and returns the corresponding value:
The mutual exclusion variable pointed to by mutex is invalid.
The mutex parameter points to an illegal address.
(This error may not be detected; a SIGSEGV signal may be posted to the
faulting LWP if an illegal address is used.)
The locks acquired with _lwp_mutex_lock and _lwp_mutex_trylock
should be released with _lwp_mutex_unlock.
Lightweight processes (LWPs) are internal interfaces and are subject
to change. Their use should be avoided.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004