src: added ReaderWriterLock, helpers and Semaphore

This commit is contained in:
malte_langkabel
2016-10-10 17:37:38 +02:00
parent 072cccf852
commit 86f652d221
10 changed files with 199 additions and 2 deletions
@@ -0,0 +1,16 @@
#ifndef SCOPED_READER_LOCK_H
#define SCOPED_READER_LOCK_H
#include "utility/synchronization/ReaderWriterLock.h"
class ScopedReaderLock
{
public:
ScopedReaderLock(ReaderWriterLock& lock);
~ScopedReaderLock();
private:
ReaderWriterLock& m_lock;
};
#endif // SCOPED_READER_LOCK_H