Overview
| Artifact ID: | c7588dd361ac8f0ba5ea7e78a3d1581840295cee |
|---|---|
| Ticket: | 1464890fffffffffffffffffffffffffffffffff
after command hangs when system time changes |
| User & Date: | kennykb on 2007-03-12 23:27:51 |
Changes
- icomment:
Logged In: YES user_id=99768 Originator: NO The trouble with what you're demanding is that it works only if there is only one [after] active, anywhere in the program. As soon as there is more than one, you get back into the same situation. Certainly, you can use sleep() or a waitable timer to delay until it's time for the *first* after to wake up. But in the situation: after 10000 {do something} after 5000 {do something else} once you've awakened on the first [after], you have to figure out what time the *second* one should fire. If the clock has backed up, how do you do that and get the behaviour you demand? Spinning a thread per [after] so that they can all use blocking timers would probably be infeasible - I know of applications that have thousands of [after]s scheduled. - login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"