[Python-Dev] Re: Extension modules, Threading, and the GIL

Mark Hammond mhammond@skippinet.com.au
Sun, 12 Jan 2003 23:52:26 +1100


> etc).  But I
> > believe we could simply lean on them for their
> implementations at runtime.
>
> Ah, so that void (*funcTLSAlloc)(...) was supposed to be something
> supplied by the extension writer?
>
> Hmm, the Boost interface doesn't work that way, and AFAICT wouldn't be
> easily adapted to it.

Windows and Mozilla work as you describe too, but I don't see the problem.
For both of these, we would just provide a 3 <wink> line stub function,
which uses the platform TLS API to return a "void *" we previously stashed.
This local function is passed in.

But yeah, as I said before, happy to YAGNI it.

Mark.