Print

Print


Ah, but you are saying that the standard is ill-defined. The statement

"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."

Implies that ETIMEDOUT should be returned but you are saying that in fact EINVAL is returned. In fact, EINVAL can only be returned when "the value specified by cond, mutex or abstime is invalid." For abstime to be invalid would only happen when v_nsec value is less than 0 or greater than 1,000,000,000 not because you passed a time in the past. Do you actually have sample code that violates this?


Reply to this email directly or view it on GitHub.



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1