7 #ifndef __FWDATA_MT_OBJECTREADLOCK_HPP__ 8 #define __FWDATA_MT_OBJECTREADLOCK_HPP__ 10 #include "fwData/Object.hpp" 11 #include "fwData/config.hpp" 13 #include <fwCore/mt/types.hpp> 32 FWDATA_API
ObjectReadLock( ::fwData::Object::csptr obj,
bool lock =
true );
35 FWDATA_API ~ObjectReadLock();
38 FWDATA_API
void lock();
41 FWDATA_API
void unlock();
52 #endif // __FWDATA_MT_OBJECTREADLOCK_HPP__ A helper to lock object on read mode.
::boost::shared_lock< ReadWriteMutex > ReadLock
Defines a lock of read type for read/write mutex.
Contains the representation of the data objects used in the framework.