summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Thread.h
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2008-10-03 18:46:00 +0000
committerStephen D. Huston <shuston@apache.org>2008-10-03 18:46:00 +0000
commit1555cda8e52e27be9ce9ee00026cf6f0e4507d28 (patch)
treeb0e74b32303ae49e73828c28e9603a9fe41c058c /cpp/src/qpid/sys/Thread.h
parentc8fcdb008af74a937599a9b94ae169762bbc437d (diff)
downloadqpid-python-1555cda8e52e27be9ce9ee00026cf6f0e4507d28.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/sys/Thread.h')
-rw-r--r--cpp/src/qpid/sys/Thread.h8
1 files changed, 8 insertions, 0 deletions
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 <boost/shared_ptr.hpp>
+#ifdef _WIN32
+# define QPID_TSS __declspec(thread)
+#elif defined (gcc)
+# define QPID_TSS __thread
+#else
+# define QPID_TSS
+#endif
+
namespace qpid {
namespace sys {