Skip to content
Tcl Source Code Artifact [ca9aa990a5]
Login

Artifact [ca9aa990a5]

Artifact ca9aa990a5be44922eeeeba9b3b77e9a5f8efa64:

Ticket change [ca9aa990a5] - New ticket [2010350fffffffff|2010350fff] <i>Extend &quot;after info&quot; capabilities</i>. by o_lenormand on 2008-07-04 06:58:30.
D 2008-07-04T06:58:30
J assignee kennykb
J cmimetype text/plain
J comment Purpose:\smake\sa\sricher\sversion\sof\s"after\sinfo"\n\nInformations\sreturned\sby\s"after\sinfo"\sis\saccurate\sbut\snot\sas\srich\sas\sit\scould.\nWhen\sdealing\swith\sa\slot\sof\sconcurrent\stimers\s(I'm\sbuilding\sa\stcl-only\sscheduler),\sone\squickly\sneeds\smore\sdetailed\sinformations.\n\nToday\s"after"\slacks\sa\scommand\sthat\sreturns\sthe\stime-ordered\stimers\sin\sthe\squeue,\sand\sthe\scurrent\svalues\sof\stheir\sassociated\stimers.\n\nI'm\sthinking\sof\stwo\snew\scommands,\ssuch\sas:\n\n\s-\safter\snext:\sreturns\sthe\stimer\svalue\sof\sthe\snext\stimer\sto\sbe\sactivated.\nExample:\n%\safter\s10000\s{puts\shi!}\nafter#0\n%\safter\snext\n4581\n\n\s-\safter\sxinfo\s:\sit's\sa\srich\sversion\sof\s"after\sinfo",\staht\sdeals\swith\sall\sthe\sexisting\stimers.\nIt\sshould\sreturn\sa\slist\slike:\n{<event_i>\s<command_i>\s<timer_i>\s[<event_j>\s<command_j>\s<timer_j>\s...]}\n\nExample:\n%\safter\s10000\s{puts\shi!}\nafter#0\n%\safter\s30000\s{puts\s"hi\sagain!"}\nafter#1\n%\safter\sxinfo\nafter#0\s{puts\shi!}\s2940\safter#1\s{puts\s"hi\sagain!"}\s21708\n\nThe\slist\selements\sare\schronogicaly\ssorted,\sthe\sfirst\sthe\ssooner\s(it\sseems\sthat's\snot\sthe\sway\s"after\sinfo"\sworks).\n\nThough\s"after\snext"\sis\sa\ssub-result\sof\s"after\sxinfo",\sit's\sa\sconvenient\sway\sof\sgetting\sstraight\sthis\sinformation.\n\nThoses\stwo\scommands\swill\sgive\sus\sthe\scapability\sto\shandle\scomplex\sand\sheavy\sTimer\susages.\nI'd\slove\sto\ssee\sthese\stwo\scommands\sintegrated\sin\stcl'core\s:)\n\nThanks\sin\sadvance,\sOlivier.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter o_lenormand
J subsystem 03.\sTimer\sEvents
J title Extend\s"after\sinfo"\scapabilities
J type RFE
K 2010350fffffffffffffffffffffffffffffffff
U o_lenormand
Z 2946db41530e334569ded9b0b95a3082