tclEvent.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Data Structures |
struct | BgError |
struct | ErrAssocData |
struct | ExitHandler |
struct | ThreadSpecificData |
Functions |
void | Tcl_BackgroundError (Tcl_Interp *interp) |
void | TclBackgroundException (Tcl_Interp *interp, int code) |
int | TclDefaultBgErrorHandlerObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) |
void | TclSetBgErrorHandler (Tcl_Interp *interp, Tcl_Obj *cmdPrefix) |
Tcl_Obj * | TclGetBgErrorHandler (Tcl_Interp *interp) |
void | Tcl_CreateExitHandler (Tcl_ExitProc *proc, ClientData clientData) |
void | Tcl_DeleteExitHandler (Tcl_ExitProc *proc, ClientData clientData) |
void | Tcl_CreateThreadExitHandler (Tcl_ExitProc *proc, ClientData clientData) |
void | Tcl_DeleteThreadExitHandler (Tcl_ExitProc *proc, ClientData clientData) |
Tcl_ExitProc * | Tcl_SetExitProc (Tcl_ExitProc *proc) |
void | Tcl_Exit (int status) |
void | TclInitSubsystems (void) |
void | Tcl_Finalize (void) |
void | Tcl_FinalizeThread (void) |
int | TclInExit (void) |
int | TclInThreadExit (void) |
int | Tcl_VwaitObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) |
int | Tcl_UpdateObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) |
int | Tcl_CreateThread (Tcl_ThreadId *idPtr, Tcl_ThreadCreateProc proc, ClientData clientData, int stackSize, int flags) |
Function Documentation
void Tcl_CreateExitHandler |
( |
Tcl_ExitProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
int Tcl_CreateThread |
( |
Tcl_ThreadId * |
idPtr, |
|
|
Tcl_ThreadCreateProc |
proc, |
|
|
ClientData |
clientData, |
|
|
int |
stackSize, |
|
|
int |
flags | |
|
) |
| | |
void Tcl_CreateThreadExitHandler |
( |
Tcl_ExitProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
void Tcl_DeleteExitHandler |
( |
Tcl_ExitProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
void Tcl_DeleteThreadExitHandler |
( |
Tcl_ExitProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
void Tcl_Exit |
( |
int |
status |
) |
|
void Tcl_Finalize |
( |
void |
|
) |
|
Definition at line 904 of file tclEvent.c.
References ckfree, ExitHandler::clientData, ExitHandler::nextPtr, ExitHandler::proc, Tcl_FinalizeThread(), Tcl_MutexLock, Tcl_MutexUnlock, Tcl_Panic(), Tcl_SetPanicProc(), TCL_TSD_INIT, TclFinalizeDoubleConversion(), TclFinalizeEncodingSubsystem(), TclFinalizeEnvironment(), TclFinalizeExecution(), TclFinalizeFilesystem(), TclFinalizeLoad(), TclFinalizeLock(), TclFinalizeMemorySubsystem(), TclFinalizeObjects(), TclFinalizePreserve(), TclFinalizeSynchronization(), TclFinalizeThreadAlloc(), TclFinalizeThreadData(), TclpInitLock(), and TclResetFilesystem().
Referenced by Tcl_Exit().
void Tcl_FinalizeThread |
( |
void |
|
) |
|
Definition at line 1086 of file tclEvent.c.
References ckfree, ExitHandler::clientData, ThreadSpecificData::firstExitPtr, ThreadSpecificData::inExit, ExitHandler::nextPtr, ExitHandler::proc, TclFinalizeAsync(), TclFinalizeIOSubsystem(), TclFinalizeNotifier(), TclFinalizeThreadData(), and TclThreadDataKeyGet().
Referenced by Tcl_ExitThread(), and Tcl_Finalize().
Tcl_ExitProc* Tcl_SetExitProc |
( |
Tcl_ExitProc * |
proc |
) |
|
int Tcl_UpdateObjCmd |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 1283 of file tclEvent.c.
References CONST, TCL_ALL_EVENTS, Tcl_AppendResult(), TCL_DONT_WAIT, Tcl_DoOneEvent(), TCL_ERROR, Tcl_GetIndexFromObj(), TCL_IDLE_EVENTS, Tcl_LimitExceeded(), TCL_OK, Tcl_Panic(), Tcl_ResetResult(), TCL_WINDOW_EVENTS, and Tcl_WrongNumArgs().
int Tcl_VwaitObjCmd |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 1200 of file tclEvent.c.
References TCL_ALL_EVENTS, Tcl_AppendResult(), Tcl_DoOneEvent(), TCL_ERROR, Tcl_GetString(), TCL_GLOBAL_ONLY, Tcl_LimitExceeded(), TCL_OK, Tcl_ResetResult(), TCL_TRACE_UNSETS, TCL_TRACE_WRITES, Tcl_TraceVar(), Tcl_UntraceVar(), and Tcl_WrongNumArgs().
void TclBackgroundException |
( |
Tcl_Interp * |
interp, |
|
|
int |
code | |
|
) |
| | |
Definition at line 146 of file tclEvent.c.
References ckalloc, BgError::errorMsg, ErrAssocData::firstBgPtr, ErrAssocData::lastBgPtr, BgError::nextPtr, BgError::returnOpts, Tcl_DoWhenIdle(), Tcl_GetAssocData(), Tcl_GetObjResult(), Tcl_GetReturnOptions(), Tcl_IncrRefCount, TCL_OK, Tcl_ResetResult(), and TclGetBgErrorHandler().
Referenced by Tcl_BackgroundError(), and TclChannelEventScriptInvoker().
int TclDefaultBgErrorHandlerObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 304 of file tclEvent.c.
References Tcl_AllowExceptions(), Tcl_AppendObjToErrorInfo(), TCL_BREAK, TCL_CONTINUE, Tcl_DecrRefCount, Tcl_DictObjGet(), Tcl_DiscardInterpState(), TCL_ERROR, TCL_EVAL_GLOBAL, Tcl_EvalObjv(), Tcl_FindCommand(), Tcl_Flush(), Tcl_GetIntFromObj(), Tcl_GetObjResult(), Tcl_GetStdChannel(), Tcl_GetVar2Ex(), TCL_GLOBAL_ONLY, Tcl_IncrRefCount, TCL_INVOKE_HIDDEN, Tcl_IsSafe(), Tcl_ObjPrintf(), TCL_OK, Tcl_ResetResult(), Tcl_RestoreInterpState(), TCL_RETURN, Tcl_SaveInterpState(), Tcl_SetObjErrorCode(), Tcl_SetObjResult(), TCL_STDERR, Tcl_WriteChars(), Tcl_WriteObj(), Tcl_WrongNumArgs(), TclNewLiteralStringObj, and TclObjInvoke().
void TclInitSubsystems |
( |
void |
|
) |
|
Definition at line 834 of file tclEvent.c.
References Tcl_Panic(), TclInitAlloc(), TclInitDbCkalloc(), TclInitDoubleConversion(), TclInitEncodingSubsystem(), TclInitIOSubsystem(), TclInitNamespaceSubsystem(), TclInitNotifier(), TclInitObjSubsystem(), TclInitThreadStorage(), TclpInitLock(), TclpInitPlatform(), TclpInitUnlock(), and TclpSetInterfaces().
Referenced by Tcl_CreateInterp(), and Tcl_FindExecutable().
int TclInThreadExit |
( |
void |
|
) |
|
Generated on Wed Mar 12 12:18:30 2008 by
1.5.1
|