// file : odb/details/win32/mutex.ixx // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file namespace odb { namespace details { inline mutex:: ~mutex () { DeleteCriticalSection (&cs_); } inline mutex:: mutex () { InitializeCriticalSection (&cs_); } inline void mutex:: lock () { EnterCriticalSection (&cs_); } inline void mutex:: unlock () { LeaveCriticalSection (&cs_); } } }