[cfe-dev] __thread keyword, LLVM 3.2 & Xcode 4.6

Jacob Carlborg doob at me.com
Tue Nov 6 05:24:43 PST 2012

On 2012-11-06 11:50, Jean-Daniel Dupas wrote:

> There is 2 thing to consider. The system must know how to reserve memory on each thread to store the thread local variable (the part Lion implements), which is enough to use TLS with simple C construct.
> The second part is to support invocation of initialization/cleanup functions for TLS values each time a thread is created/destroyed. This part is require to support C++ object with a constructor/destructor.  I didn't dig in the dyld / libc / kernel sources for OS X.8, but I don't think it support it yet.

Right, I guess I was mostly thinking of the first part.

/Jacob Carlborg

More information about the cfe-dev mailing list