Write locks created on the stack that acquire an "underlying" read/write lock for writing on initialization and release it when the object goes out of scope. More...
#include <Robots/LoBot/thread/LoRWLock.H>
Public Member Functions | |
AutoWriteLock (RWLock &) | |
Constructor: will acquire the underlying lock object for writing. | |
AutoWriteLock (const RWLock &) | |
~AutoWriteLock () | |
Clean-up: will release the underlying lock object. |
Write locks created on the stack that acquire an "underlying" read/write lock for writing on initialization and release it when the object goes out of scope.
Definition at line 127 of file LoRWLock.H.
lobot::AutoWriteLock::AutoWriteLock | ( | RWLock & | L | ) |
Constructor: will acquire the underlying lock object for writing.
Definition at line 128 of file LoRWLock.C.
lobot::AutoWriteLock::AutoWriteLock | ( | const RWLock & | L | ) |
Constructor for const RWLock objects (e.g., when called from const member functions in client classes).
Definition at line 134 of file LoRWLock.C.
lobot::AutoWriteLock::~AutoWriteLock | ( | ) |
Clean-up: will release the underlying lock object.
Definition at line 176 of file LoRWLock.C.