On 08/17/2011 10:23 AM, Stefan Hajnoczi wrote:
>  I don't know about Win32 TLS support, but at least OpenBSD/sparc64
>  gcc/ld/ld.so/libc do not support __thread. According to manual, TLS is
>  not available everywhere:
>  
http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Thread_002dLocal.html#Thread_002dLocal
Yeah, for OpenBSD we have the portable but slow GThread coroutine
implementation.

I think (but I'm not sure) that a newer GCC on OpenBSD is able to convert __thread to pthread_key_setspecific.

I'm trying to see if we can do something like Windows TLS at the qemu-thread level.

Paolo

Reply via email to