qemu-tls.h: Add abstraction layer for TLS variables
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Oct 2011 09:52:40 +0000 (10:52 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Nov 2011 15:58:08 +0000 (10:58 -0500)
commit754fd932bedacfd7de35cf74da6adca89ba28089
tree0ec076f3cec4c21cfbdd193e019a69f454145328
parent3e837b2c05bc63fe2226baf3c29923d5a688593f
qemu-tls.h: Add abstraction layer for TLS variables

Add an abstraction layer for defining and using thread-local
variables. For the moment this is implemented only for Linux,
which means they can only be used in restricted circumstances.
The abstraction layer allows us to add POSIX and Win32 support
later.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-tls.h [new file with mode: 0644]