*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> pthread_cond_timedwait (3)              
Title
Content
Arch
Section
 

Contents


PTHREAD_COND_TIMEDW... FreeBSD Library Functions Manual PTHREAD_COND_TIMEDW...

NAME    [Toc]    [Back]

     pthread_cond_timedwait -- wait on a condition variable for a specific
     amount of time

LIBRARY    [Toc]    [Back]

     Reentrant C Library (libc_r, -lc_r)

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int
     pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
	 const struct timespec *abstime);

DESCRIPTION    [Toc]    [Back]

     The pthread_cond_timedwait() 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 pthread_cond_signal(3), or pthread_cond_broadcast(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    [Toc]    [Back]

     If successful, the pthread_cond_timedwait() function will return zero.
     Otherwise an error number will be returned to indicate the error.

ERRORS    [Toc]    [Back]

     The pthread_cond_timedwait() function will fail if:

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

     [ETIMEDOUT]	The system time has reached or exceeded the time specified
 in abstime.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_cond_broadcast(3), pthread_cond_destroy(3), pthread_cond_init(3),
     pthread_cond_signal(3), pthread_cond_wait(3)

STANDARDS    [Toc]    [Back]

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


FreeBSD 5.2.1			 July 28, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pthread_cond_wait OpenBSD wait on a condition variable
pthread_cond_wait FreeBSD wait on a condition variable
scsiquiesce IRIX stop all SCSI bus activity for a specific amount of time
pthread_cond_wait Tru64 Causes a thread to wait for the specified condition variable to be signaled or broadcasted
tis_cond_timedwait Tru64 Causes a thread to wait for the specified condition variable to be signaled or broadcast, such that ...
tis_cond_wait Tru64 Causes a thread to wait for the specified condition variable to be signaled or broadcast
sleep Linux delay for a specified amount of time
clear_wait Tru64 General: Clears the wait condition
tkwait IRIX Wait for variable to change or window to be destroyed
pthread_cond_destroy Tru64 Destroys a condition variable
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service