No need for deferred, non-blocking or timeout acquisition
This commit is contained in:
parent
ff966490bb
commit
3075f6cea7
@ -26,7 +26,7 @@
|
|||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <boost/thread/tss.hpp>
|
#include <boost/thread/tss.hpp>
|
||||||
#include <boost/thread/shared_mutex.hpp>
|
#include <boost/thread/shared_mutex.hpp>
|
||||||
#include <boost/thread/synchronized_value.hpp>
|
#include <boost/thread/lock_guard.hpp>
|
||||||
|
|
||||||
namespace osrm
|
namespace osrm
|
||||||
{
|
{
|
||||||
@ -260,7 +260,7 @@ template <class EdgeDataT> class SharedDataFacade final : public BaseDataFacade<
|
|||||||
{
|
{
|
||||||
// Get exclusive lock
|
// Get exclusive lock
|
||||||
util::SimpleLogger().Write(logDEBUG) << "Updates available, getting exclusive lock";
|
util::SimpleLogger().Write(logDEBUG) << "Updates available, getting exclusive lock";
|
||||||
boost::unique_lock<boost::shared_mutex> lock(data_mutex);
|
const boost::lock_guard<boost::shared_mutex> lock(data_mutex);
|
||||||
|
|
||||||
if (CURRENT_LAYOUT != data_timestamp_ptr->layout ||
|
if (CURRENT_LAYOUT != data_timestamp_ptr->layout ||
|
||||||
CURRENT_DATA != data_timestamp_ptr->data)
|
CURRENT_DATA != data_timestamp_ptr->data)
|
||||||
|
Loading…
Reference in New Issue
Block a user