tclTimer.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Data Structures |
struct | TimerHandler |
struct | AfterInfo |
struct | AfterAssocData |
struct | IdleHandler |
struct | ThreadSpecificData |
Defines |
#define | TCL_TIME_BEFORE(t1, t2) (((t1).sec<(t2).sec) || ((t1).sec==(t2).sec && (t1).usec<(t2).usec)) |
#define | TCL_TIME_DIFF_MS(t1, t2) |
Functions |
Tcl_TimerToken | Tcl_CreateTimerHandler (int milliseconds, Tcl_TimerProc *proc, ClientData clientData) |
Tcl_TimerToken | TclCreateAbsoluteTimerHandler (Tcl_Time *timePtr, Tcl_TimerProc *proc, ClientData clientData) |
void | Tcl_DeleteTimerHandler (Tcl_TimerToken token) |
void | Tcl_DoWhenIdle (Tcl_IdleProc *proc, ClientData clientData) |
void | Tcl_CancelIdleCall (Tcl_IdleProc *proc, ClientData clientData) |
int | TclServiceIdle (void) |
int | Tcl_AfterObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) |
Define Documentation
#define TCL_TIME_BEFORE |
( |
t1, |
|
|
t2 |
|
) |
(((t1).sec<(t2).sec) || ((t1).sec==(t2).sec && (t1).usec<(t2).usec)) |
#define TCL_TIME_DIFF_MS |
( |
t1, |
|
|
t2 |
|
) |
|
Function Documentation
int Tcl_AfterObjCmd |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 768 of file tclTimer.c.
References ThreadSpecificData::afterId, AfterInfo::assocPtr, ckalloc, AfterInfo::commandPtr, CONST, AfterAssocData::firstAfterPtr, AfterInfo::id, AfterAssocData::interp, AfterInfo::nextPtr, Tcl_Time::sec, Tcl_AppendElement(), Tcl_AppendResult(), Tcl_CancelIdleCall(), Tcl_ConcatObj(), Tcl_DecrRefCount, Tcl_DeleteTimerHandler(), Tcl_DoWhenIdle(), TCL_ERROR, Tcl_GetAssocData(), Tcl_GetIndexFromObj(), Tcl_GetString(), Tcl_GetStringFromObj(), Tcl_GetTime(), Tcl_GetWideIntFromObj(), Tcl_IncrRefCount, TCL_INTEGER_SPACE, Tcl_ListObjAppendElement(), Tcl_NewObj(), Tcl_NewStringObj(), Tcl_ObjPrintf(), TCL_OK, Tcl_Panic(), Tcl_SetAssocData(), Tcl_SetObjResult(), Tcl_WrongNumArgs(), tclBignumType, TclCreateAbsoluteTimerHandler(), TclGetString, tclIntType, tclWideIntType, AfterInfo::token, and Tcl_Time::usec.
void Tcl_CancelIdleCall |
( |
Tcl_IdleProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Tcl_TimerToken Tcl_CreateTimerHandler |
( |
int |
milliseconds, |
|
|
Tcl_TimerProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
void Tcl_DoWhenIdle |
( |
Tcl_IdleProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Definition at line 607 of file tclTimer.c.
References ckalloc, IdleHandler::clientData, IdleHandler::generation, ThreadSpecificData::idleGeneration, ThreadSpecificData::idleList, ThreadSpecificData::lastIdlePtr, IdleHandler::nextPtr, IdleHandler::proc, Tcl_Time::sec, Tcl_SetMaxBlockTime(), and Tcl_Time::usec.
Referenced by Tcl_AfterObjCmd(), and TclBackgroundException().
Tcl_TimerToken TclCreateAbsoluteTimerHandler |
( |
Tcl_Time * |
timePtr, |
|
|
Tcl_TimerProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Definition at line 277 of file tclTimer.c.
References ckalloc, TimerHandler::clientData, ThreadSpecificData::firstTimerHandlerPtr, INT2PTR, ThreadSpecificData::lastTimerId, TimerHandler::nextPtr, TimerHandler::proc, TCL_ALL_EVENTS, TCL_TIME_BEFORE, TimerHandler::time, and TimerHandler::token.
Referenced by Tcl_AfterObjCmd(), Tcl_CreateTimerHandler(), and Tcl_LimitSetTime().
int TclServiceIdle |
( |
void |
|
) |
|
Definition at line 699 of file tclTimer.c.
References ckfree, IdleHandler::clientData, IdleHandler::generation, ThreadSpecificData::idleGeneration, ThreadSpecificData::idleList, ThreadSpecificData::lastIdlePtr, IdleHandler::nextPtr, IdleHandler::proc, Tcl_Time::sec, Tcl_SetMaxBlockTime(), and Tcl_Time::usec.
Referenced by Tcl_DoOneEvent(), and Tcl_ServiceAll().
Generated on Wed Mar 12 12:18:34 2008 by
1.5.1
|