shared monitor implementation with a conditional variable

or a ring buffer with semaphores
This commit is contained in:
Michael Krasnyk
2017-02-03 13:39:44 +01:00
committed by Patrick Niklaus
parent 438aa66b4c
commit 82acd59a8e
10 changed files with 310 additions and 170 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#include "storage/shared_barrier.hpp"
#include "storage/shared_memory.hpp"
#include "storage/shared_monitor.hpp"
#include "storage/storage.hpp"
#include "util/exception.hpp"
#include "util/log.hpp"
@@ -14,7 +14,7 @@
using namespace osrm;
void removeLocks() { osrm::storage::SharedBarrier::Remove(); }
void removeLocks() { osrm::storage::SharedMonitor<osrm::storage::SharedDataTimestamp>::remove(); }
void deleteRegion(const storage::SharedDataType region)
{