Skip to content
Tcl Source Code Changes To Notifier
Login

Changes To Notifier

Changes to "Notifier" between 2014-09-09 19:39:17 and 2014-10-24 21:45:39

︙
57
58
59
60
61
62
63










57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73







+
+
+
+
+
+
+
+
+
+
appears to be an indivisible, interdependent collection.

The extension/customization feature provided by <b>Tcl_SetNotifier</b>
has a very convoluted implementation.  Refactoring to something more like
that used by <b>Tcl_SetTimeProc</b> 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 <b>select()</b> system call.
This implementation brings with it a limitation of <b>FD_SETSIZE</b>.  Besides
that, <b>select()</b> has a reputation of being an <i>old</i> choice, and
many programmers are curious why more recent mechanisms are not used.
Other candidates include <b>poll()</b>.  It seems the way forward is to
patch up any defects in <b>Tcl_SetNotifier</b> 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.