// file : odb/details/mutex.hxx // copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_DETAILS_MUTEX_HXX #define ODB_DETAILS_MUTEX_HXX #include #include #ifdef ODB_THREADS_NONE namespace odb { namespace details { class mutex { public: mutex () {} void lock () {} void unlock () {} private: mutex (const mutex&); mutex& operator= (const mutex&); }; } } #elif defined(ODB_THREADS_CXX11) # include namespace odb { namespace details { using std::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