<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>