mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
23 lines
342 B
C++
23 lines
342 B
C++
|
|
/* mutex.cpp */
|
|
|
|
|
|
#include "mutex.h"
|
|
|
|
static Mutex _global_mutex;
|
|
|
|
void _global_lock() {
|
|
_global_mutex.lock();
|
|
}
|
|
|
|
void _global_unlock() {
|
|
_global_mutex.unlock();
|
|
}
|
|
|
|
#ifndef NO_THREADS
|
|
|
|
template class MutexImpl<std::recursive_mutex>;
|
|
template class MutexImpl<std::mutex>;
|
|
|
|
#endif
|