Manual Pages for UNIX Darwin command on man pthread_mutex_unlock
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_mutex_unlock

PTHREADMUTEXUNLOCK(3) BSD Library Functions Manual PTHREADMUTEXUNLOCK(3)

NAME

pptthhrreeaaddmmuutteexxuunnlloocckk - unlock a mutex

SYNOPSIS

##iinncclluuddee <>

int pptthhrreeaaddmmuutteexxuunnlloocckk(pthreadmutext *mutex);

DESCRIPTION

If the current thread holds the lock on mutex, then the pptthhrreeaaddmmuutteexxuunnlloocckk() function unlocks mutex.

RETURN VALUES

If successful, pptthhrreeaaddmmuutteexxuunnlloocckk() will return zero, otherwise an error number will be returned to indicate the error. EERRRROORRSS pptthhrreeaaddmmuutteexxttrryylloocckk() 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

pptthhrreeaaddmmuutteexxuunnlloocckk() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').

BSD July 30, 1998 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™