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