Anyone know why pthread_cond_timedwait doesn't seem to wait at all
(noone sends a cond_signal) for the following snippet? I guess maybe
I'm doing something wrong with TIA
struct timespec theTimeSpec = {0};
theTimeSpec.tv_sec = 0;
theTimeSpec.tv_nsec = 500000000;/* 500.0 milliseconds */
err = pthread_cond_timedwait(&pcbReadyForSorter_cond,
&sortWaiting_lock,
&theTimeSpec);
when it returns, err = 147, which I can't seem to find the meaning of.
When I try to test (err == ETIMEDOUT), my compiler complains that
ETIMEDOUT is not defined. Wasup?
--
opinions expressed here are not those of my employer!
email: [EMAIL PROTECTED] Rich Cook, Mail Stop L-551 Bldg-3577
Rm-1000
http://www.llnl.gov/graphics Lawrence Livermore National Laboratory
phone (925) 423-9605 (work) 7000 East Avenue
fax (925) 423-9338 Livermore, CA 94550, USA