2014-11-22 12:32:56 +00:00
|
|
|
#ifndef mutex_h_
|
|
|
|
#define mutex_h_
|
2010-05-02 23:27:30 +00:00
|
|
|
|
2019-11-05 19:25:57 +00:00
|
|
|
#include <mutex>
|
2012-05-01 12:39:20 +00:00
|
|
|
|
2019-11-05 19:25:57 +00:00
|
|
|
typedef std::mutex mutex_t;
|
2012-11-05 02:49:08 +00:00
|
|
|
|
2019-11-05 19:25:57 +00:00
|
|
|
inline void mutex_lock(mutex_t* mutex)
|
|
|
|
{
|
|
|
|
mutex->lock();
|
|
|
|
}
|
2010-05-02 23:27:30 +00:00
|
|
|
|
2019-11-05 19:25:57 +00:00
|
|
|
inline void mutex_unlock(mutex_t* mutex)
|
|
|
|
{
|
|
|
|
mutex->unlock();
|
|
|
|
}
|
2010-05-02 23:27:30 +00:00
|
|
|
|
2012-11-05 02:49:08 +00:00
|
|
|
|
|
|
|
|
2010-08-12 13:38:37 +00:00
|
|
|
#endif
|