// file : odb/details/win32/once.cxx // author : Boris Kolpackov // copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include #include #include namespace odb { namespace details { CRITICAL_SECTION once::cs_; void once_process_start () { InitializeCriticalSection (&once::cs_); } void once_process_end (bool) { DeleteCriticalSection (&once::cs_); } } }