fw4spl
fwData::mt::ObjectWriteLock Class Reference

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.
 

Detailed Description

A helper to lock object on exclusive mode.

Definition at line 23 of file ObjectWriteLock.hpp.


The documentation for this class was generated from the following files: