Skip to content
Tcl Source Code Changes To after
Login

Changes To after

Initial version of "after"




















































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<h1>Source Files</h1>
  *  portions of [/finfo?name=generic/tclTimer.c|tclTimer.c]

<h1>Public Interface</h1>
  *  <i>None</i>

<h1>Private Interface</h1>
  *  Tcl_AfterObjCmd

<h1>Directly Depends On Public Interface</h1>
  *  [Timer Events]
  *  [Threads]
  *  [Allocation]
  *  [Preservation]
  *  [Tcl_Obj System]
  *  [Other Utilities]
  *  [string Object Type]
  *  [Parsing and Evaluation]
  *  [Event Loops]
  *  [Time Measurement]
  *  [Asynchronous Events]
  *  [interp]
  *  [Notifier]
  *  [Panic]
  *  [list Object Type]
  *  [index Object Type]

<h1>Directly Depends On Private Interface of</h1>
  *  [Timer Events]
  *  [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 lower level half of this module 
needs only [Time Measurement], [Threads], [Notifier], [Event Loops], [Allocation].

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.

Unless something is using it from the private stubs table, the only callers of
<b>TclServiceIdle</b> are <b>Tcl_DoOneEvent</b> and <b>Tcl_ServiceAll</b>,
so that connection might be resolved by redrawing module boundaries.