Fix for LockedQueue.h (clean rebuilds ftw.)

This commit is contained in:
leak
2014-06-08 16:05:23 +02:00
parent ee4a3b9d59
commit fdd5e11a15

View File

@@ -103,17 +103,15 @@ public:
//! Cancels the queue.
void cancel()
{
lock();
std::lock_guard<std::mutex> lock(_lock);
_canceled = true;
unlock();
}
//! Checks if the queue is cancelled.
bool cancelled()
{
ACE_Guard<LockType> g(this->_lock);
std::lock_guard<std::mutex> lock(_lock);
return _canceled;
}