aboutsummaryrefslogtreecommitdiff
path: root/odb/details/posix
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/posix')
-rw-r--r--odb/details/posix/condition.hxx7
-rw-r--r--odb/details/posix/exceptions.hxx7
-rw-r--r--odb/details/posix/mutex.hxx8
-rw-r--r--odb/details/posix/thread.hxx8
-rw-r--r--odb/details/posix/tls.hxx16
5 files changed, 36 insertions, 10 deletions
diff --git a/odb/details/posix/condition.hxx b/odb/details/posix/condition.hxx
index 8e8e05c..1358db8 100644
--- a/odb/details/posix/condition.hxx
+++ b/odb/details/posix/condition.hxx
@@ -6,15 +6,18 @@
#ifndef ODB_DETAILS_POSIX_CONDITION_HXX
#define ODB_DETAILS_POSIX_CONDITION_HXX
+#include <odb/pre.hxx>
+
#include <pthread.h>
+#include <odb/details/export.hxx>
#include <odb/details/posix/mutex.hxx>
namespace odb
{
namespace details
{
- class condition
+ class LIBODB_EXPORT condition
{
public:
~condition ();
@@ -39,4 +42,6 @@ namespace odb
#include <odb/details/posix/condition.ixx>
+#include <odb/post.hxx>
+
#endif // ODB_DETAILS_POSIX_CONDITION_HXX
diff --git a/odb/details/posix/exceptions.hxx b/odb/details/posix/exceptions.hxx
index f4b4572..76f5763 100644
--- a/odb/details/posix/exceptions.hxx
+++ b/odb/details/posix/exceptions.hxx
@@ -6,13 +6,16 @@
#ifndef ODB_DETAILS_POSIX_EXCEPTIONS_HXX
#define ODB_DETAILS_POSIX_EXCEPTIONS_HXX
+#include <odb/pre.hxx>
+
+#include <odb/details/export.hxx>
#include <odb/details/exception.hxx>
namespace odb
{
namespace details
{
- struct posix_exception: details::exception
+ struct LIBODB_EXPORT posix_exception: details::exception
{
posix_exception (int code) : code_ (code) {}
@@ -28,4 +31,6 @@ namespace odb
}
}
+#include <odb/post.hxx>
+
#endif // ODB_DETAILS_POSIX_EXCEPTIONS_HXX
diff --git a/odb/details/posix/mutex.hxx b/odb/details/posix/mutex.hxx
index d06a8c3..d62fa24 100644
--- a/odb/details/posix/mutex.hxx
+++ b/odb/details/posix/mutex.hxx
@@ -6,13 +6,17 @@
#ifndef ODB_DETAILS_POSIX_MUTEX_HXX
#define ODB_DETAILS_POSIX_MUTEX_HXX
+#include <odb/pre.hxx>
+
#include <pthread.h>
+#include <odb/details/export.hxx>
+
namespace odb
{
namespace details
{
- class mutex
+ class LIBODB_EXPORT mutex
{
public:
~mutex ();
@@ -37,4 +41,6 @@ namespace odb
#include <odb/details/posix/mutex.ixx>
+#include <odb/post.hxx>
+
#endif // ODB_DETAILS_POSIX_MUTEX_HXX
diff --git a/odb/details/posix/thread.hxx b/odb/details/posix/thread.hxx
index 5036b37..f2e2a75 100644
--- a/odb/details/posix/thread.hxx
+++ b/odb/details/posix/thread.hxx
@@ -6,13 +6,17 @@
#ifndef ODB_DETAILS_POSIX_THREAD_HXX
#define ODB_DETAILS_POSIX_THREAD_HXX
+#include <odb/pre.hxx>
+
#include <pthread.h>
+#include <odb/details/export.hxx>
+
namespace odb
{
namespace details
{
- class thread
+ class LIBODB_EXPORT thread
{
public:
~thread ();
@@ -34,4 +38,6 @@ namespace odb
#include <odb/details/posix/thread.ixx>
+#include <odb/post.hxx>
+
#endif // ODB_DETAILS_POSIX_THREAD_HXX
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