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/condition.hxx | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'odb/details/condition.hxx') diff --git a/odb/details/condition.hxx b/odb/details/condition.hxx index 9e416d6..127d038 100644 --- a/odb/details/condition.hxx +++ b/odb/details/condition.hxx @@ -6,6 +6,44 @@ #ifndef ODB_DETAILS_CONDITION_HXX #define ODB_DETAILS_CONDITION_HXX +#include + +#include +#include + +#ifdef ODB_THREADS_NONE + +namespace odb +{ + namespace details + { + class mutex; + class LIBODB_EXPORT condition + { + public: + condition (mutex&) {} + + void + signal () {} + + void + wait () {} + + private: + condition (const condition&); + condition& operator= (const condition&); + }; + } +} + +#elif defined(ODB_THREADS_POSIX) #include +#elif defined(ODB_THREADS_WIN32) +#include +#else +# error unknown threading model +#endif + +#include #endif // ODB_DETAILS_CONDITION_HXX -- cgit v1.1