aboutsummaryrefslogtreecommitdiff
path: root/odb/details/posix/tls.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-26 14:52:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-26 14:52:12 +0200
commit6fb470a39ef8900b71634333b0a2227dc8b62799 (patch)
tree6d782be7a2b25c3f21e9d25f7c7251bde2699994 /odb/details/posix/tls.hxx
parentc883d0ba2f4450f35de6767355555fa83e6262ea (diff)
Add support for creating other build systems (meta-building)
Add support for automake, VC++ 9, and VC++ 10. Also add the Win32 and 'NULL' threading model implementations.
Diffstat (limited to 'odb/details/posix/tls.hxx')
-rw-r--r--odb/details/posix/tls.hxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/odb/details/posix/tls.hxx b/odb/details/posix/tls.hxx
index 6e11a64..92b0f4b 100644
--- a/odb/details/posix/tls.hxx
+++ b/odb/details/posix/tls.hxx
@@ -6,6 +6,8 @@
#ifndef ODB_DETAILS_POSIX_TLS_HXX
#define ODB_DETAILS_POSIX_TLS_HXX
+#include <odb/pre.hxx>
+
#include <pthread.h>
namespace odb
@@ -69,23 +71,23 @@ namespace odb
template <typename T>
inline T&
- tls_get (const tls<T>& s)
+ tls_get (const tls<T>& t)
{
- return s.get ();
+ return t.get ();
}
template <typename T>
inline T*
- tls_get (const tls<T*>& s)
+ tls_get (const tls<T*>& t)
{
- return s.get ();
+ return t.get ();
}
template <typename T>
inline void
- tls_set (tls<T*>& s, T* p)
+ tls_set (tls<T*>& t, T* p)
{
- return s.set (p);
+ t.set (p);
}
}
}
@@ -93,4 +95,6 @@ namespace odb
#include <odb/details/posix/tls.ixx>
#include <odb/details/posix/tls.txx>
+#include <odb/post.hxx>
+
#endif // ODB_DETAILS_POSIX_TLS_HXX