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
Public Method Documentation
No public source comment is attached to this declaration.
Returns
ReadGuardThe declared return value.
No public source comment is attached to this declaration.
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inValueT—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
WriteGuardThe declared return value.