I\'m having a strange problem. I have the following code:
dbg(\"condwait: timeout = %d, %d\\n\", abs_timeout->tv_sec, abs_timeout->tv_nsec);
pthread_cond_timedwait takes an absolute time, not a relative time. You need to make your wait time absolute by adding to the current time to your timeout value.