Manual Pages for UNIX Darwin command on man pthread_cond_wait
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_cond_wait

PTHREADCONDWAIT(3) BSD Library Functions Manual PTHREADCONDWAIT(3)

NAME

pptthhrreeaaddccoonnddwwaaiitt - wait on a condition variable

SYNOPSIS

##iinncclluuddee <>

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

DESCRIPTION

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

RETURN VALUES

If successful, the pptthhrreeaaddccoonnddwwaaiitt() function will return zero. Other-

wise an error number will be returned to indicate the error. EERRRROORRSS pptthhrreeaaddccoonnddwwaaiitt() 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

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

Darwin November 5, 2001 Darwin




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