Re: [Qemu-devel] [RFC 06/13] qemu-thread: add TLS wrappers

2013-06-20 Thread Stefan Hajnoczi
On Thu, Jun 20, 2013 at 10:50:32AM +0200, Paolo Bonzini wrote: > Il 20/06/2013 09:26, Fam Zheng ha scritto: > > On Fri, 06/14 11:48, Stefan Hajnoczi wrote: > >> From: Paolo Bonzini > >> > >> Fast TLS is not available on some platforms, but it is always nice to > >> use it. This wrapper implementa

Re: [Qemu-devel] [RFC 06/13] qemu-thread: add TLS wrappers

2013-06-20 Thread Paolo Bonzini
Il 20/06/2013 09:26, Fam Zheng ha scritto: > On Fri, 06/14 11:48, Stefan Hajnoczi wrote: >> From: Paolo Bonzini >> >> Fast TLS is not available on some platforms, but it is always nice to >> use it. This wrapper implementation falls back to pthread_get/setspecific >> on POSIX systems that lack __

Re: [Qemu-devel] [RFC 06/13] qemu-thread: add TLS wrappers

2013-06-20 Thread Fam Zheng
On Fri, 06/14 11:48, Stefan Hajnoczi wrote: > From: Paolo Bonzini > > Fast TLS is not available on some platforms, but it is always nice to > use it. This wrapper implementation falls back to pthread_get/setspecific > on POSIX systems that lack __thread, but uses the dynamic linker's TLS > suppo

[Qemu-devel] [RFC 06/13] qemu-thread: add TLS wrappers

2013-06-14 Thread Stefan Hajnoczi
From: Paolo Bonzini Fast TLS is not available on some platforms, but it is always nice to use it. This wrapper implementation falls back to pthread_get/setspecific on POSIX systems that lack __thread, but uses the dynamic linker's TLS support on Linux and Windows. The user shall call alloc_foo(