PTHREADMUTEXUNLOCK(3) BSD Library Functions Manual PTHREADMUTEXUNLOCK(3)
NAME
pthreadmutexunlock -- unlock a mutex
SYNOPSIS
##include <>
int
pthreadmutexunlock(pthreadmutext *mutex);
DESCRIPTION
If the current thread holds the lock on mutex, then the
pthreadmutexunlock() function unlocks mutex.
RETURN VALUES
If successful, pthreadmutexunlock() will return zero, otherwise an
error number will be returned to indicate the error.
ERORS
pthreadmutextrylock() will fail if:
[EINVAL] The value specified by mutex is invalid.
[EPERM] The current thread does not hold a lock on mutex.
SEE ALSO
pthreadmutexdestroy(3), pthreadmutexinit(3), pthreadmutexlock(3),
pthreadmutextrylock(3)
STANDARDS
pthreadmutexunlock() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD July 30, 1998 BSD
|