MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
PTHREADMUTEXLOCK(3)    BSD Library Functions Manual    PTHREADMUTEXLOCK(3)

NAME
     pthreadmutexlock -- lock a mutex

SYNOPSIS
     ##include <>

     int
     pthreadmutexlock(pthreadmutext *mutex);

DESCRIPTION
     The pthreadmutexlock() function locks mutex.  If the mutex is already
     locked, the calling thread will block until the mutex becomes available.

RETURN VALUES
     If successful, pthreadmutexlock() will return zero, otherwise an error
     number will be returned to indicate the error.

ERORS
     pthreadmutexlock() will fail if:

     [EINVAL]           The value specified by mutex is invalid.

     [EDEADLK]          A deadlock would occur if the thread blocked waiting
                        for mutex.

SEE ALSO
     pthreadmutexdestroy(3), pthreadmutexinit(3),
     pthreadmutextrylock(3), pthreadmutexunlock(3)

STANDARDS
     pthreadmutexlock() 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 ™