MyWebUniversity.com Home Page
 



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

NAME
     pthreadcondwait -- wait on a condition variable

SYNOPSIS
     ##include <>

     int
     pthreadcondwait(pthreadcondt *cond, pthreadmutext *mutex);

DESCRIPTION
     The pthreadcondwait() function atomically unlocks the mutex argument
     and waits on the cond argument.

RETURN VALUES
     If successful, the pthreadcondwait() function will return zero.  Other-
     wise an error number will be returned to indicate the error.

ERORS
     pthreadcondwait() will fail if:

     [EINVAL]           The value specified by cond or the value specified by
                        mutex is invalid.

SEE ALSO
     pthreadcondbroadcast(3), pthreadconddestroy(3), pthreadcondinit(3),
     pthreadcondsignal(3), pthreadcondtimedwait(3)

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

Darwin                         November 5, 2001                         Darwin
Darwin Mac OS X man pages main menu

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