Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I am trying to understand how Tcl_SetNotifier works for the mac.
I understand the Tcl_SetNotifier effectively lets me replace these functions:
Now if I look in macosx/tclMacOSXNotify.c, I see that these functions
make use of a local ThreadSpecificData *tsdPtr, which is initialized by Tcl_InitNotifier.
However, Tcl_Sleep also makes use of the same tsdPtr, but Tcl_Sleep is not
part of the notifier.
So how can this work? If I replace the notifier by Tcl_SetNotifier, then
Tcl_InitNotifier is replaced by my own function.
Then if Tcl_Sleep is called, it will access tsdPtr, which was never initialized properly,
as it should have been initialized by the original Tcl_InitNotifier.
Is this a bug, or am I misunderstanding something?