Tcl Source Code

(Initi/Fin)alize
Login

Source Files

Public Interface

Private Interface

Configuration Defines

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

This module is devoted to control over the initialization and finalization of the subsystems of Tcl, and extensions to it by way of exit handlers and thread exit handlers. This is the part that could use a good audit and reform, particularly in examining multi-threaded finalization.

The routine TclInitSubsystems needs to become public, so that Tcl using apps can bring up and tear down the Tcl library via an approved set of routines.

It may be that the TclIn(Thread)Exit routines are needed by extensions as well. Or as an alternative, it would be nice if Tcl finalization were well-behaved enough that nothing else had to care whether or not they were running "in exit".