DUNE: Uniform Navigational Environment
2017.01.0
|
Scoped Read/Write lock.
Public Member Functions | |
ScopedRWLock (RWLock &l, bool write=false) | |
~ScopedRWLock (void) | |
|
inline |
Construct the object, locking the associated read/write lock.
l | associated lock. |
write | true to perform a write lock, false to perform a read lock. |
References DUNE::Concurrency::RWLock::lockRead(), and DUNE::Concurrency::RWLock::lockWrite().
|
inline |
Destruct the object, unlocking the associated read/write lock.
References DUNE::Concurrency::RWLock::unlock().