Skip to content
Tcl Source Code Update of ”Event Loops”
Login

Update of ”Event Loops”

Overview

Artifact ID: fb487cd4c1d2a697d2d56efc1e5242b80308fe56
Page Name:Event Loops
Date: 2014-10-09 17:15:54
Original User: dgp
Parent: 012e1ebac103713a3ade079d8a81fb363dd235f5 (diff)
Next 24f424140ca824e9c9ce32e0493e6ea45568f6ea
Content

Lets break this down:

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

This module gets its name because the update and vwait commands are defined here. Those commands are built entirely on the public routines of the Tcl C interface, though. They could be defined exactly as they are even in an extension.

Another related set of functionality are the routines for raising background exceptions, and those for registering callback commands in each interp to handle them. Except for the connection to interp bgerror and an edge case of hidden command invocation, these routines can be created entirely outside the Tcl public interface as well. Moving this submodule into interp should be considered.

Finally the rest of 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.