| Artifact ID: | 3bf3c078a27645c5d286bd0806bdbdaec067c8fa |
|---|---|
| Page Name: | Timer Events |
| Date: | 2014-09-07 21:27:01 |
| Original User: | dgp |
| Parent: | 2836d0a2636858267ab4c064e20bd6577c540969 (diff) |
| Next | 6c6d753f6ee864ee5ca09374c7d19341f1a030c6 |
Source Files
Public Interface
- Tcl_CreateTimerHandler
- Tcl_DeleteTimerHandler
- Tcl_DoWhenIdle
- Tcl_CancelIdleCall
Private Interface
- TclCreateAbsoluteTimerHandler
- TclServiceIdle
- Tcl_AfterObjCmd
Directly Depends On Public Interface
- 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
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.