#7 Bug int Condition::wait(Mutex *mutex, unsigned long int ms)

open
nobody
None
5
2006-02-14
2006-02-14
Anonymous
No

The nanosecs calculation seems to be a factor 1000 to
small.

The statement 'unsigned int nsec = (ms % 1000) * 1000;'
in the file PThreadCondition.c++ for pthreads should be
'unsigned int nsec = (ms % 1000) * 1000000;'

Discussion