oa::RwLock

oa::RwLock <T > — reader-writer lock wrapping a value. Multiple concurrent readers OR one exclusive writer. Uses oa::SharedMutex under the hood. usage: oa::RwLock <oa ::Vector <oa ::Matrix>> cache; { auto r = cache.read(); use(*r); } // shared { auto w = cache.write(); w->push_back(t); } // exclusive

Public Types

Public Methods

ReadGuard oa::RwLock::read()
void oa::RwLock::RwLock<T>()
void oa::RwLock::RwLock<T>(T inValue)
WriteGuard oa::RwLock::write()

Public Method Documentation

ReadGuard oa::RwLock::read()
No public source comment is attached to this declaration.

Returns

ReadGuard

The declared return value.

void oa::RwLock::RwLock<T>()
No public source comment is attached to this declaration.

Returns

void

The declared return value.

void oa::RwLock::RwLock<T>( T inValue )
No public source comment is attached to this declaration.

Parameters

inValue
T

Returns

void

The declared return value.

WriteGuard oa::RwLock::write()
No public source comment is attached to this declaration.

Returns

WriteGuard

The declared return value.