paysages3d/src/system/Mutex.h

31 lines
389 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
{
/*!
* \brief System mutex
*/
class SYSTEMSHARED_EXPORT Mutex: private QMutex
2013-10-20 13:01:57 +00:00
{
public:
/*!
* \brief Create a new mutex
*/
Mutex();
inline void acquire() {QMutex::lock();}
inline void release() {QMutex::unlock();}
};
}
}
#endif // MUTEX_H