NAME
pptthhrreeaaddccoonnddttiimmeeddwwaaiitt - wait on a condition variable for a specific
amount of timeSYNOPSIS
##iinncclluuddee <
int pptthhrreeaaddccoonnddttiimmeeddwwaaiitt(pthreadcondt *cond, pthreadmutext *mutex, const struct timespec *abstime);> DESCRIPTION
The pptthhrreeaaddccoonnddttiimmeeddwwaaiitt() function atomically blocks the current thread waiting on the condition variable specified by cond, and unblocks the mutex specified by mutex. The waiting thread unblocks only after another thread calls pthreadcondsignal(3), or pthreadcondbroadcast(3) with the same condition variable, or if the system time reaches the time specified in abstime, and the current thread reacquires the lock on mutex.RETURN VALUES
If successful, the pptthhrreeaaddccoonnddttiimmeeddwwaaiitt() function will return zero. Otherwise an error number will be returned to indicate the error. EERRRROORRSS pptthhrreeaaddccoonnddttiimmeeddwwaaiitt() will fail if: [EINVAL] The value specified by cond, mutex or abstime is invalid.[ETIMEDOUT] The system time has reached or exceeded the time spec-
ified in abstime.SEE ALSO
pthreadcondbroadcast(3), pthreadconddestroy(3), pthreadcondinit(3), pthreadcondsignal(3), pthreadcondwait(3) STANDARDSpptthhrreeaaddccoonnddttiimmeeddwwaaiitt() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD July 28, 1998 BSD