<html><head></head><body bgcolor="#FFFFFF"><div>That's good to hear :-)</div><div><br></div><div>(It's a fantastic facility, I couldn't imagine having to go back to manual TLS API stuff after using __thread/__declspec(thread).)<br><br>This e-mail was sent<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "> from a wireless device. </span></div><div><br>On 21 Mar 2013, at 09:30, "Baptiste Lepilleur" <<a href="mailto:baptiste.lepilleur@gmail.com">baptiste.lepilleur@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><br><br><div class="gmail_quote">2013/3/15 Trent Nelson <span dir="ltr"><<a href="mailto:trent@snakebite.org" target="_blank">trent@snakebite.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, Mar 14, 2013 at 03:50:27PM -0700, "Martin v. Löwis" wrote:<br>
> Am 14.03.13 12:59, schrieb Stefan Ring:<br>
> > I think you should be able to just take the address of a static<br>
> > __thread variable to achieve the same thing in a more portable way.<br>
><br>
> That assumes that the compiler supports __thread variables, which<br>
> isn't that portable in the first place.<br>
<br>
</div>    FWIW, I make extensive use of __declspec(thread).  I'm aware of GCC<br>
    and Clang's __thread alternative.  No idea what IBM xlC, Sun Studio<br>
    and others offer, if anything.<br></blockquote><div><br></div><div>IBM xlC and Sun Studio also support this feature. From memory, it's also __thread keyword. This features is also supported by the new C11/C++11 standards.</div>

<div> </div><div>Baptiste.</div></div>
</div></blockquote></body></html>