7 #include "fwData/mt/ObjectReadLock.hpp" 9 #include <boost/thread/locks.hpp> FWDATA_API void lock()
Adds read lock on object mutex.
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...
::boost::shared_lock< ReadWriteMutex > ReadLock
Defines a lock of read type for read/write mutex.
FWDATA_API ~ObjectReadLock()
Destructor. Does nothing.
FWDATA_API void unlock()
Releases lock on object mutex.
Contains the representation of the data objects used in the framework.