mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +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
|