TLS for Android
    Joakim 
    joakim at airpost.net
       
    Sat Mar  8 22:04:21 PST 2014
    
    
  
On Saturday, 8 March 2014 at 19:11:52 UTC, Dan Olson wrote:
> While on the subject of TLS, that is probably the most needed 
> language
> feature to allow threading to work reliably on iOS.  So hoping 
> the
> solution will work on iOS too!
I wondered earlier why you weren't just using Walter's packed TLS 
approach and now I see why, ldc doesn't use it.  Looks like Apple 
hasn't ported the TLV functions which ldc uses to iOS yet either, 
so you're out of luck there too.  I guess you'll have to port 
Walter's approach to ldc to get TLS working on iOS:
https://github.com/D-Programming-Language/dmd/blob/master/src/backend/machobj.c#L1673
Either that or get llvm to emit the right pthread calls, like I 
mentioned earlier.
    
    
More information about the digitalmars-d-ldc
mailing list