7 #ifndef __FWDATA_MT_OBJECTREADTOWRITELOCK_HPP__ 8 #define __FWDATA_MT_OBJECTREADTOWRITELOCK_HPP__ 10 #include "fwData/Object.hpp" 11 #include "fwData/config.hpp" 13 #include <fwCore/mt/types.hpp> 35 FWDATA_API ~ObjectReadToWriteLock();
38 FWDATA_API
void lock();
41 FWDATA_API
void unlock();
44 FWDATA_API
void upgrade();
47 FWDATA_API
void downgrade();
59 #endif // __FWDATA_MT_OBJECTREADTOWRITELOCK_HPP__
::boost::upgrade_lock< ReadWriteMutex > ReadToWriteLock
Defines an upgradable lock type for read/write mutex.
::boost::upgrade_to_unique_lock< ReadWriteMutex > UpgradeToWriteLock
Defines a write lock upgraded from ReadToWriteLock.
A helper to lock object on upgradable mode.
Contains the representation of the data objects used in the framework.