MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
PTHREADCONDTIMEDWAI... BSD Library Functions Manual PTHREADCONDTIMEDWAI...

NAME
     pthreadcondtimedwait -- wait on a condition variable for a specific
     amount of time

SYNOPSIS
     ##include <>

     int
     pthreadcondtimedwait(pthreadcondt *cond, pthreadmutext *mutex,
         const struct timespec *abstime);

DESCRIPTION
     The pthreadcondtimedwait() 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 pthreadcondtimedwait() function will return zero.
     Otherwise an error number will be returned to indicate the error.

ERORS
     pthreadcondtimedwait() 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)

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

BSD                              July 28, 1998                             BSD
Darwin Mac OS X man pages main menu

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