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