From 6fb470a39ef8900b71634333b0a2227dc8b62799 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Aug 2010 14:52:12 +0200 Subject: 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. --- odb/details/mutex.hxx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'odb/details/mutex.hxx') diff --git a/odb/details/mutex.hxx b/odb/details/mutex.hxx index e1121b9..b0d59bb 100644 --- a/odb/details/mutex.hxx +++ b/odb/details/mutex.hxx @@ -6,6 +6,43 @@ #ifndef ODB_DETAILS_MUTEX_HXX #define ODB_DETAILS_MUTEX_HXX +#include + +#include +#include + +#ifdef ODB_THREADS_NONE + +namespace odb +{ + namespace details + { + class LIBODB_EXPORT mutex + { + public: + mutex () {} + + void + lock () {} + + void + unlock () {} + + private: + mutex (const mutex&); + mutex& operator= (const mutex&); + }; + } +} + +#elif defined(ODB_THREADS_POSIX) #include +#elif defined(ODB_THREADS_WIN32) +#include +#else +# error unknown threading model +#endif + +#include #endif // ODB_DETAILS_MUTEX_HXX -- cgit v1.1