Manual Pages for UNIX Darwin command on man pthread_mutex_destroy
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_mutex_destroy

PTHREADMUTEXDESTROY(3) BSD Library Functions Manual PTHREADMUTEXDESTROY(3)

NAME

pptthhrreeaaddmmuutteexxddeessttrrooyy - free resources allocated for a mutex

SYNOPSIS

##iinncclluuddee <>

int pptthhrreeaaddmmuutteexxddeessttrrooyy(pthreadmutext *mutex);

DESCRIPTION

The pptthhrreeaaddmmuutteexxddeessttrrooyy() function frees the resources allocated for mutex.

RETURN VALUES

If successful, pptthhrreeaaddmmuutteexxddeessttrrooyy() will return zero, otherwise an error number will be returned to indicate the error. EERRRROORRSS pptthhrreeaaddmmuutteexxddeessttrrooyy() will fail if: [EINVAL] The value specified by mutex is invalid. [EBUSY] Mutex is locked by another thread.

SEE ALSO

pthreadmutexinit(3), pthreadmutexlock(3), pthreadmutextrylock(3), pthreadmutexunlock(3) STANDARDS

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

BSD July 29, 1998 BSD




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