On Sun, 2007-06-10 at 12:31 +0200, Clemens Kirchgatterer wrote:
Petri Hintukainen phintuka@users.sourceforge.net wrote:
If clock is turned 2 minutes back in middle of this, the code will wait 120100 ms instead of 100ms ... Might cause some quite weird problems. I belive there's no way to change pthread_..._timedwait functions, but cTimeMs can be changed to use monotonic timers instead of gettimeofday (patch attached).
just for the record, i think you have to change the Makefile to include -lrt in the LIBS for the patch to work.
That's right, that part was missing from the patch :(
- Petri