Skip to content
Tcl Source Code History Of Ticket 2010350
Login

History Of Ticket 2010350

Artifacts Associated With Ticket 2010350

  1. Ticket change [ca9aa990a5] (rid 95384) by o_lenormand on 2008-07-04 06:58:30:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "o_lenormand"
    10. subsystem initialized to: "03. Timer Events"
    11. title initialized to: "Extend "after info" capabilities"
    12. type initialized to: "RFE"
  2. Ticket change [0ae5d8d2f2] (rid 113898) by ferrieux on 2008-07-04 14:09:05:

    1. icomment:
      
      
      File Added - 283610: afterxinfo3.patch
      
      Logged In: YES 
      user_id=496139
      Originator: NO
      
      TIP to come.
      Just attached a patch implementing [after next] and [after xinfo] commands.
      It uses the already-sorted internal list of timer handlers instead of the LIFO used by [after info].
      This means the filtering out of non-after handlers (like the hidden ones from buffered fileevents) is done in a slightly different way, by comparing timerHandle->proc with AfterProc (no AfterInfo nor assocPtr can be reached in the fileevent case, since the clientData is a ChannelData). Kevin please tell me if this is acceptable or not. 
      File Added: afterxinfo3.patch
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [99913befab] (rid 110816) by ferrieux on 2010-02-02 05:40:40:

    1. icomment:
      
      
      File Added - 361247: afterxinfo4.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Add attachment "afterxinfo4.patch" [89158aa895] (rid 131974) by ferrieux on 2010-02-02 05:40:40.

  5. Add attachment "afterxinfo3.patch" [28adedbf49] (rid 88739) by ferrieux on 2010-11-24 00:08:42.

  6. Ticket change [e95ad37ea0] (rid 104809) by ferrieux on 2010-11-24 00:08:42:

    1. icomment:
      
      
      File Added - 394173: afterxinfo3.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [9c60b09774] (rid 96141) by ferrieux on 2010-11-24 00:08:56:

    1. icomment:
      
      
      File Deleted - 283610: 
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"