Overview
| Artifact ID: | f90be68758b7b95dc952a13862681e03d3f8e040 |
|---|---|
| Page Name: | Timer Events |
| Date: | 2014-09-14 20:42:02 |
| Original User: | dgp |
| Parent: | 8005ecccfc7077f720a9b2b057d018fd579c9d4f (diff) |
| Next | 3d9996958edff63e402087ef78353a10af468a41 |
Content
Source Files
- portions of tclTimer.c
Public Interface
- Tcl_CreateTimerHandler
- Tcl_DeleteTimerHandler
- Tcl_DoWhenIdle
- Tcl_CancelIdleCall
Private Interface
- TclCreateAbsoluteTimerHandler
- TclServiceIdle
Directly Depends On Public Interface
Directly Depends On Private Interface of
Discussion
The private dependency is on TclThreadDataKeyGet which appears easily convertible to Tcl_GetThreadData.
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.