qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD
@ 2013-06-24 19:21 Ed Maste
  2013-06-24 21:15 ` Paolo Bonzini
  2013-06-28 10:34 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 2 replies; 17+ messages in thread
From: Ed Maste @ 2013-06-24 19:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Ed Maste

Signed-off-by: Ed Maste <emaste@freebsd.org>
---
I have had this in a local tree for some time, and it is needed by the
BSD-user work that is now being proposed.

As an aside, an abstraction was recently proposed for Open vSwtich that
can use any of _Thread_local, __thread, or pthread_getspecific() which
may make a convenient reference for someone wishing to implement one of
the TODOs: http://openvswitch.org/pipermail/dev/2013-June/028665.html

 include/qemu/tls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/qemu/tls.h b/include/qemu/tls.h
index b92ea9d..ae7d79d 100644
--- a/include/qemu/tls.h
+++ b/include/qemu/tls.h
@@ -38,7 +38,7 @@
  * TODO: proper implementations via Win32 .tls sections and
  * POSIX pthread_getspecific.
  */
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
 #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x)
 #define DEFINE_TLS(type, x)  __thread __typeof__(type) tls__##x
 #define tls_var(x)           tls__##x
-- 
1.7.11.5

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-07-01  8:03 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 19:21 [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD Ed Maste
2013-06-24 21:15 ` Paolo Bonzini
2013-06-24 21:30   ` Peter Maydell
2013-06-25  6:18     ` Paolo Bonzini
2013-06-25 10:56   ` Peter Maydell
2013-06-25 10:58     ` Paolo Bonzini
2013-06-28 10:34 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-06-28 12:54   ` Ed Maste
2013-06-28 13:03     ` Paolo Bonzini
2013-06-28 13:05       ` Peter Maydell
2013-06-28 14:08         ` Ed Maste
2013-06-28 14:47         ` Paolo Bonzini
2013-06-28 14:55           ` Peter Maydell
2013-06-28 15:11             ` Paolo Bonzini
2013-06-28 15:35               ` Ed Maste
2013-06-28 15:37                 ` Paolo Bonzini
2013-07-01  8:03                   ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).