2009-12-09 11:19:44 pthread_cond_timedwait
Filip Vanalme (BELGIUM)
I'm still using 2006R1. Is it possible that there's a problem with the function pthread_cond_timedwait in that version ?
I notice that, sometimes, all threads seem to block when using that function (and when the condition is never set). Normally just the calling thread should block. E.g. when waiting for 15 seconds for a certain event, the whole application seem to be blocked for that amount of time. At other places in the software however, the same function seem to work well (maybe just because the condition is set shortly after the call to the wait function).
Replacing this function by pthread_cond_wait resolved that problem. Of course, the thread calling this function could be blocked forever, and that's not exactly what I want...
Is there any situation where calling this function could block all threads ? Maybe the priority of the thread that is calling the function ? Or the timeout value ?
2009-12-09 11:29:37 Re: pthread_cond_timedwait
Robin Getz (UNITED STATES)
There are many problems in 2006R1 - pthreads is just but one.