mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-13 22:21:01 +00:00
20 lines
215 B
C++
20 lines
215 B
C++
#ifndef mutex_h_
|
|
#define mutex_h_
|
|
|
|
#include <mutex>
|
|
|
|
typedef std::mutex mutex_t;
|
|
|
|
inline void mutex_lock(mutex_t* mutex)
|
|
{
|
|
mutex->lock();
|
|
}
|
|
|
|
inline void mutex_unlock(mutex_t* mutex)
|
|
{
|
|
mutex->unlock();
|
|
}
|
|
|
|
|
|
|
|
#endif
|