fw4spl
|
A helper to lock object on read mode. More...
#include <ObjectReadLock.hpp>
Public Member Functions | |
FWDATA_API | ObjectReadLock (::fwData::Object::csptr obj, bool lock=true) |
Constructor : owns an read lock on object mutex. If adopt_lock==false : the mutex is not locked (call lock() to lock mutex) | |
FWDATA_API | ~ObjectReadLock () |
Destructor. Does nothing. | |
FWDATA_API void | lock () |
Adds read lock on object mutex. | |
FWDATA_API void | unlock () |
Releases lock on object mutex. | |
A helper to lock object on read mode.
Definition at line 23 of file ObjectReadLock.hpp.