removed useless file

This commit is contained in:
granzuglia 2016-05-06 06:11:05 +00:00
parent e671856039
commit 848a17e0fb
1 changed files with 0 additions and 36 deletions

View File

@ -1,36 +0,0 @@
#ifndef __ML_ATOMIC_GUARD_H
#define __ML_ATOMIC_GUARD_H
class MLAtomicGuard
{
public:
MLAtomicGuard(bool val)
:_lock(QReadWriteLock::Recursive),_guard(val) {}
~MLAtomicGuard() {}
MLAtomicGuard& operator=(bool v)
{
QWriteLocker locker(&_lock);
_guard = v;
return *this;
}
bool operator==(bool v) const
{
QReadLocker locker(&_lock);
return (_guard == v);
}
bool operator!=(bool v) const
{
QReadLocker locker(&_lock);
return (_guard != v);
}
private:
bool _guard;
mutable QReadWriteLock _lock;
};
#endif