Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ca9aa990a5be44922eeeeba9b3b77e9a5f8efa64
Ticket: 2010350fffffffffffffffffffffffffffffffff
Extend "after info" capabilities
User & Date: o_lenormand on 2008-07-04 06:58:30
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "o_lenormand"
  10. subsystem changed to: "03. Timer Events"
  11. title changed to: "Extend "after info" capabilities"
  12. type changed to: "RFE"