<span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; "><pre><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: small;">> Wouldn't a thread-local global variable solve your problem?

> Best regards,
> --Edwin</span></span></pre><pre><span class="Apple-style-span" style="font-family: arial; font-size: 13px;">Are thread-local variables supported on all platforms? If so, than probably yes... both the pointers would probably be kept in the processor cache, which would speed-wise probably be comparable (will it be?) with keeping variables in the registers.</span></pre>
<pre><span class="Apple-style-span" style="font-family: arial; font-size: 13px;"><br></span></pre><pre><span class="Apple-style-span" style="font-family: arial; font-size: 13px;"> - Tom Primožič</span></pre></span>