Operating System - Linux
1828963 Members
2176 Online
109986 Solutions
New Discussion

pthread_cond_wait() not waiting at all ...

 
Ugly Kid Joe
Advisor

pthread_cond_wait() not waiting at all ...

Hi people,

I've got this annoying issue with pthread_cond_wait() which does not wait at all on a HPUX 11.00 with gcc 3.3.2.
The associated mutex is successfully locked and the condition variable is initialized either with PTHREAD_COND_INITIALIZER or with pthread_cond_init with attributs of NULL.

On another platform however (linux,aix) i dont have any problem...

is it a missing patch? or missing switches when compiling with gcc? or doest it have something to do with thread cancelation type which i do not set at all?

Please advise what i should do to resolve the problem.

Thank You.