Skip to content
Tcl Source Code Artifact [2836d0a263]
Login

Artifact [2836d0a263]

Artifact 2836d0a2636858267ab4c064e20bd6577c540969:

Wiki page [Timer Events] by dgp on 2014-09-07 21:07:05.
D 2014-09-07T21:07:05.403
L Timer\sEvents
P fab73f37d25034bfe0705389fc20777b53ba2f26
U dgp
W 1649
<h1>Source Files</h1>
  *  [/finfo?name=generic/tclTimer.c|tclTimer.c]

<h1>Public Interface</h1>
  *  Tcl_CreateTimerHandler
  *  Tcl_DeleteTimerHandler
  *  Tcl_DoWhenIdle
  *  Tcl_CancelIdleCall

<h1>Private Interface</h1>
  *  TclCreateAbsoluteTimerHandler
  *  TclServiceIdle
  *  Tcl_AfterObjCmd

<h1>Directly Depends On Public Interface</h1>
  *  [Threads]
  *  [Allocation]
  *  [Preservation]
  *  [Object System and Fundamental Object Types]
  *  [Parsing and Evaluation]
  *  [Event Loops]
  *  [Time Measurement]
  *  [Asynchronous Events]
  *  [interp]
  *  [Notifier]
  *  [Embedding Support]
  *  [list Object Type]
  *  [index Object Type]

<h1>Directly Depends On Private Interface of</h1>
  *  [Threads]
  *  [Object System and Fundamental Object Types]
 
<h1>Discussion</h1>

This is really two modules.  First the machinery to provide the public C routines
listed above.  Second additional code needed to make use of those routines and
other public Tcl C routines to define the [after] command.  Most of the dependencies
listed here are in support of the command.

The private dependencies are just shortcuts, nothing essential (for example,
<b>TclGetString</b> where <b>Tcl_GetString</b> would function just as well.

The private routine <b>TclCreateAbsoluteTimerHandler</b> appears to exist
just so that <b>Tcl_LimitSetTime</b> doesnt have to pass through milliseconds
(and the loss of precision implicit in that conversion).  Since <b>Tcl_Time</b> values
are already in the public Tcl interface, this would be a good routine to make public,
though perhaps with a name change.


Z 222ed118130511f3b68cda5aee6ad6bb