71 #if !defined(SWIG) || defined(SWIG_THREADING) // Do not read when in swig and not in the threading module
79 #if defined(_MEZZ_THREAD_WIN32_)
80 #if defined(__MINGW64_VERSION_MAJOR)
81 struct _RTL_CRITICAL_SECTION;
82 typedef _RTL_CRITICAL_SECTION CRITICAL_SECTION;
83 #else//__MINGW64_VERSION_MAJOR
84 class _CRITICAL_SECTION;
85 typedef _CRITICAL_SECTION CRITICAL_SECTION;
86 #endif//__MINGW64_VERSION_MAJOR
87 #endif//_MEZZ_THREAD_WIN32_
102 #ifdef _MEZZ_CPP11_PARTIAL_
109 #ifdef _MEZZ_CPP11_PARTIAL_
117 #if defined(_MEZZ_THREAD_WIN32_)
118 CRITICAL_SECTION* mHandle;
122 pthread_mutex_t mHandle;
void lock()
Simply calls Lock() for compatibility with lock_guard and other more standard mutexes.
A cross-platform abstraction of the OS's mutex.
void unlock()
Simply calls Unlock() for compatibility with lock_guard and other more standard mutexes.
Simple thread safe ways to check and change a specified variable atomically.
The bulk of the engine components go in this namspace.