Channels for tasks?

Sean Kelly sean at invisibleduck.org
Mon Jul 22 11:41:55 PDT 2013


On Jul 18, 2013, at 11:35 PM, Jacob Carlborg <doob at me.com> wrote:

> On 2013-07-18 21:08, Sean Kelly wrote:
> 
>> We already do in-library TLS for OSX and so it shouldn't be terribly difficult to use this logic for fibers, but things get tricky once you consider dynamic libraries.
> 
> To be able to support dynamic libraries and TLS on Mac OS X we will most likely need to switch to the native implementation of TLS, supported in Mac OS X 10.7 and later. Or we would have to copy/mimic the TLS related code from the dynamic loader into druntime.

And the same for other OSes as well, if we started doing manual TLS for fibers.  Super not fun.  For reference, here's how TLS works on ELF:

http://www.akkadia.org/drepper/tls.pdf


More information about the Digitalmars-d mailing list