This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pthread_cond_timedwait
On Feb 12 12:10, Ingvill.Grefstad@kongsberg.com wrote:
> Hi,
> I have tried to use the pthread_cond_timedwait, but it doesn't seem to
> work properly.
>
> It returns immediately with a return value of 116 (ETIMEDOUT) even if I
> set the timeout period to e.g. 10 seconds.
>
> I have locked the mutex and initialized the condition variable before
> the invokation is made.
>
> What is wrong?
cockpit error, maybe. The timeval value given to pthread_cond_timedwait
is supposed to be an absolute timestamp, not a relative timeout.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/