Commit 7abdd010 authored by Julien Waechter's avatar Julien Waechter
Browse files

refs #2406 : Fixed RecursiveLock visitor for very old compiler

--HG--
branch : fw4spl_0.9.1
parent 7e5a9ab2
......@@ -69,7 +69,8 @@ struct LockVisitor : public camp::ValueVisitor< void >
{
::fwTools::BufferObject * ptr = value.get< ::fwTools::BufferObject * >();
::fwTools::BufferObject::sptr bo = ptr->getSptr();
SPTR(::fwCore::mt::ReadLock) lock = ::boost::make_shared< ::fwCore::mt::ReadLock >(bo->getMutex());
SPTR(::fwCore::mt::ReadLock) lock
= SPTR(::fwCore::mt::ReadLock)(new ::fwCore::mt::ReadLock(bo->getMutex()));
m_locks->push_back(lock);
}
}
......@@ -82,7 +83,8 @@ struct LockVisitor : public camp::ValueVisitor< void >
RecursiveLock::RecursiveLock( ::fwData::Object::sptr object, SPTR(LockVectType) locks ) :
m_object(object), m_locks(locks)
{
SPTR(::fwCore::mt::ReadLock) lock = ::boost::make_shared< ::fwCore::mt::ReadLock >(m_object->getMutex());
SPTR(::fwCore::mt::ReadLock) lock
= SPTR(::fwCore::mt::ReadLock)(new ::fwCore::mt::ReadLock(m_object->getMutex()));
m_locks->push_back(lock);
m_campObj = camp::UserObject( object.get() );
this->lock();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment