paysages3d/src/system/Mutex.h

31 lines
419 B
C
Raw Normal View History

2013-10-20 13:01:57 +00:00
#ifndef MUTEX_H
#define MUTEX_H
#include "system_global.h"
#include <QMutex>
namespace paysages {
namespace system {
2013-10-20 13:01:57 +00:00
/*!
* \brief System mutex
*/
class SYSTEMSHARED_EXPORT Mutex : private QMutex {
public:
2013-10-20 13:01:57 +00:00
/*!
* \brief Create a new mutex
*/
Mutex();
inline void acquire() {
QMutex::lock();
}
inline void release() {
QMutex::unlock();
}
2013-10-20 13:01:57 +00:00
};
}
}
#endif // MUTEX_H