TLS for Android (and iOS)
Jacob Carlborg
doob at me.com
Mon Mar 31 10:39:02 PDT 2014
On 2014-03-31 16:05, David Nadlinger wrote:
> For LDC on OS X, which makes use of the 10.7+ system-level TLS
> implementation, the place where this is handled is
> https://github.com/ldc-developers/druntime/blob/a08f158618eb5d06c42bd4746b782312e937f6b3/src/rt/sections_ldc.d#L296.
> _d_dyld_getTLSRange uses an undocumented dyld API function
> (dyld_enumerate_tlv_storage) to get the actual TLS memory range on the
> current thread:
> https://github.com/ldc-developers/druntime/blob/a08f158618eb5d06c42bd4746b782312e937f6b3/src/ldc/osx_tls.c.
"dyld_enumerate_tlv_storage" should probably be replaced with a function
that is publicly available, at some point.
--
/Jacob Carlborg
More information about the digitalmars-d-ldc
mailing list