pandemonium_engine_minimal/core/os/mutex.cpp

23 lines
342 B
C++
Raw Normal View History

2023-12-14 21:54:22 +01:00
/* mutex.cpp */
2023-12-14 21:54:22 +01:00
#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