Skip to content
Tcl Source Code Update of ”Notifier”
Login

Update of ”Notifier”

Overview

Artifact ID: e2cd94e91b312a7c11d5a48e164e517e6fd3ad9b
Page Name:Notifier
Date: 2014-10-24 21:45:39
Original User: dgp
Parent: e139b1c1b0c8626b022476e01763a9ada4966acf (diff)
Next 2978d55d5333d0ffe1906f49a0c641eb6b696c24
Content

Source Files

Public Interface

Private Interface

Driver Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

The dependence on private aspect of Time Measurement is the direct access of the tclScaleTimeProcPtr which could be avoided by use of Tcl_QueryTimeProc.

The three modules Notifier, Asynchronous Events, and Timer Events appears to be an indivisible, interdependent collection.

The extension/customization feature provided by Tcl_SetNotifier has a very convoluted implementation. Refactoring to something more like that used by Tcl_SetTimeProc appears to be feasible, with only compatibility impacts on the Xt Based Notifier which I can find no evidence of being used by anyone for anything.

The default notifier on unix is founded on the select() system call. This implementation brings with it a limitation of FD_SETSIZE. Besides that, select() has a reputation of being an old choice, and many programmers are curious why more recent mechanisms are not used. Other candidates include poll(). It seems the way forward is to patch up any defects in Tcl_SetNotifier so that a notifier can be selected at program startup, and continue to supply the select implementation (for portability to weird places like routers) while also supplying whatever new notifiers make sense on respective platforms.