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
|
|
|
|
*/
|
2013-10-20 13:24:58 +00:00
|
|
|
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
|