From 1555cda8e52e27be9ce9ee00026cf6f0e4507d28 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 3 Oct 2008 18:46:00 +0000 Subject: Add Windows threading and synchronization primitives git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@701486 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Thread.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpp/src/qpid/sys/Thread.h') diff --git a/cpp/src/qpid/sys/Thread.h b/cpp/src/qpid/sys/Thread.h index 3188e45341..2fd59621d8 100644 --- a/cpp/src/qpid/sys/Thread.h +++ b/cpp/src/qpid/sys/Thread.h @@ -23,6 +23,14 @@ */ #include +#ifdef _WIN32 +# define QPID_TSS __declspec(thread) +#elif defined (gcc) +# define QPID_TSS __thread +#else +# define QPID_TSS +#endif + namespace qpid { namespace sys { -- cgit v1.2.1