Overview
| Artifact ID: | ca9aa990a5be44922eeeeba9b3b77e9a5f8efa64 |
|---|---|
| Ticket: | 2010350fffffffffffffffffffffffffffffffff
Extend "after info" capabilities |
| User & Date: | o_lenormand on 2008-07-04 06:58:30 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
Purpose: make a richer version of "after info" Informations returned by "after info" is accurate but not as rich as it could. When dealing with a lot of concurrent timers (I'm building a tcl-only scheduler), one quickly needs more detailed informations. Today "after" lacks a command that returns the time-ordered timers in the queue, and the current values of their associated timers. I'm thinking of two new commands, such as: - after next: returns the timer value of the next timer to be activated. Example: % after 10000 {puts hi!} after#0 % after next 4581 - after xinfo : it's a rich version of "after info", taht deals with all the existing timers. It should return a list like: {<event_i> <command_i> <timer_i> [<event_j> <command_j> <timer_j> ...]} Example: % after 10000 {puts hi!} after#0 % after 30000 {puts "hi again!"} after#1 % after xinfo after#0 {puts hi!} 2940 after#1 {puts "hi again!"} 21708 The list elements are chronogicaly sorted, the first the sooner (it seems that's not the way "after info" works). Though "after next" is a sub-result of "after xinfo", it's a convenient way of getting straight this information. Thoses two commands will give us the capability to handle complex and heavy Timer usages. I'd love to see these two commands integrated in tcl'core :) Thanks in advance, Olivier. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "o_lenormand"
- subsystem changed to: "03. Timer Events"
- title changed to: "Extend "after info" capabilities"
- type changed to: "RFE"