Subj : pthread_timed_wait To : comp.programming.threads From : Michael H Lees Date : Wed Jun 01 2005 02:53 pm Hi, I'm using the LinuxThreads implementation of pthreads and I'm having trouble working out the precise meaning of the documentation. From http://www.opengroup.org/onlinepubs/009695399/functions/pthread_cond_timedwait.html .... The /pthread_cond_timedwait/() function shall be equivalent to /pthread_cond_wait/(), except that an error is returned if the absolute time specified by /abstime/ passes (that is, system time equals or exceeds /abstime/) before the condition /cond/ is signaled or broadcasted, or if the absolute time specified by /abstime/ has already been passed at the time of the call. ... I assume this means if ptherad_cond_timedwait is called with an absolute time before the current time then the error code ETIMEOUT is returned? (same as normal timeout) However, I don't know if it's my implementation but if I call timed wait with a time in the past the function returns EINVAL. From the documentation EINVAL is returned if the abstime passed is invalid. Is a abstime less than the system time an invalid time? Thanks -Mike .