MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
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
Darwin Mac OS X man pages main menu

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