mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-15 00:06:17 +01:00
26 lines
593 B
C++
26 lines
593 B
C++
|
/*************************************************************************/
|
||
|
/* mutex.cpp */
|
||
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||
|
/*************************************************************************/
|
||
|
|
||
|
//--STRIP
|
||
|
#include "core/mutex.h"
|
||
|
//--STRIP
|
||
|
|
||
|
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
|