[Tcl-bugs] [Tcl] (sebres) com (sebres-8-5-event-perf-branch): after at: added simple workaround for absolute timers/sleep ("after at real-time"): because we use monotonic time in all wait functions, so to avoid too long wait by the absolute timers (to be able to trigger it) if time jumped to the expected absolute time, just let block for maximal 1 second if absolute timers available.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Tcl-bugs] [Tcl] (sebres) com (sebres-8-5-event-perf-branch): after at: added simple workaround for absolute timers/sleep ("after at real-time"): because we use monotonic time in all wait functions, so to avoid too long wait by the absolute timers (to be able to trigger it) if time jumped to the expected absolute time, just let block for maximal 1 second if absolute timers available.

akupries
Automated mail by fx, on behalf of [hidden email]

Commit [12d1d63e1836836b9ab87a9171ed0a9fa6a28796]
  By      sebres
  For     Tcl (branch: sebres-8-5-event-perf-branch)
  On      2017-07-03T13:32:24.524
  Details https://core.tcl.tk/tcl/info/12d1d63e1836836b9ab87a9171ed0a9fa6a28796

Description
   after at: added simple workaround for absolute timers/sleep ("after at
   real-time"): because we use monotonic time in all wait functions, so
   to avoid too long wait by the absolute timers (to be able to trigger
   it) if time jumped to the expected absolute time, just let block for
   maximal 1 second if absolute timers available.

   test-cases: time-jumps (TIP #302) test covered now.  Note: on some
   platforms it is only possible if the user has corresponding privileges
   to change system date and time.  Ex.: sudo LD_LIBRARY_PATH=. ./tclsh
   ../tests/timer.test -match timer-20.*

Changed Files
  2 edited
           generic/tclTimer.c
           tests/timer.test

------------------------------------------------------------
See Tcl/Tk development @ http://core.tcl.tk/
------------------------------------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs