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