Add 1ms delay as a workaround for "faster" requests than facade update

in osrm-routed
This commit is contained in:
Michael Krasnyk
2016-12-27 13:08:04 +01:00
committed by Patrick Niklaus
parent fce8d72895
commit 710ba20acc
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ class DataWatchdog
{
if (timestamp != current->timestamp)
{
util::Log() << "updating facade to region " << storage::regionToString(current->region)
<< " with timestamp " << current->timestamp;
facade = std::make_shared<datafacade::SharedMemoryDataFacade>(current->region);
timestamp = current->timestamp;
util::Log() << "updated facade to region " << storage::regionToString(current->region)
<< " with timestamp " << current->timestamp;
}
barrier.region_condition.wait(current_region_lock);