Fix for c++03

This commit is contained in:
JoelKatz
2013-04-22 20:40:25 -07:00
parent e466651c6c
commit 98669bc073

View File

@@ -512,7 +512,8 @@ std::list<SHAMap::fetchPackEntry_t> SHAMap::getFetchPack(SHAMap* have, bool incl
if (have)
{
ul2 = boost::make_shared< boost::unique_lock<boost::recursive_mutex> >(have->mLock, boost::try_to_lock);
ul2 = boost::make_shared< boost::unique_lock<boost::recursive_mutex> >
(boost::ref(have->mLock), boost::try_to_lock);
if (!(*ul2))
{
cLog(lsINFO) << "Unable to create pack due to lock";