Dave Mielke <[EMAIL PROTECTED]> writes: > [quoted lines by Samuel Thibault on 2007/09/09 at 21:13 +0200] > >>Mario Lang, le Sun 09 Sep 2007 20:51:54 +0200, a écrit : >>> When I run "rdate" to resync my computers clock with some internet >>> time server, it can happen that brltty stops to interact with my display for >>> a certain period of time. >> >>Unfortunately, this is a know problem with gettimeofday() and such >>adjusting programs. For small clock shifts, rdate should use adjtime for >>getting a smooth shift. For bigger shifts, gettimeofday() indeed gets >>shifted. > > What if we make asyncWait() quit if it calculates a negative elapsed time? > That > particular wait will be a bit shorter, but the refresh loop should reset > after > that. Scheduled events like driver restart attempts wouldn't occur for a > while, > but the main loop should be okay. Is that sufficient?
I dont fully understand all this yet, but I have a suspicion the hangs in the TSI driver actually come from the TSI driver directly making use of gettimeofday(). I am not sure changing asyncWait() would help aynthing at all with the particular problem I reported above. -- CYa, Mario _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@mielke.cc For general information, go to: http://mielke.cc/mailman/listinfo/brltty