| Artifact ID: | 2dad701109202f2c148ef7e1165f51fba896e304 |
|---|---|
| Page Name: | after |
| Date: | 2014-09-14 20:48:47 |
| Original User: | dgp |
| Next | bc248494cacd609f74beae5bf5e619504a88c6dd |
Source Files
- portions of tclTimer.c
Public Interface
- None
Private Interface
- Tcl_AfterObjCmd
Directly Depends On Public Interface
- 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
Directly Depends On Private Interface of
Discussion
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, TclGetString where Tcl_GetString would function just as well.
The private routine TclCreateAbsoluteTimerHandler appears to exist just so that Tcl_LimitSetTime doesnt have to pass through milliseconds (and the loss of precision implicit in that conversion). Since Tcl_Time 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 TclServiceIdle are Tcl_DoOneEvent and Tcl_ServiceAll, so that connection might be resolved by redrawing module boundaries.