street name file is now more canonical
This commit is contained in:
@@ -37,9 +37,7 @@ struct OSRMLockFile {
|
||||
boost::filesystem::path operator()() {
|
||||
boost::filesystem::path temp_dir =
|
||||
boost::filesystem::temp_directory_path();
|
||||
// SimpleLogger().Write(logDEBUG) << "creating lock file in " << temp_dir;
|
||||
boost::filesystem::path lock_file = temp_dir / "osrm.lock";
|
||||
// SimpleLogger().Write(logDEBUG) << "locking at " << lock_file;
|
||||
return lock_file;
|
||||
}
|
||||
};
|
||||
@@ -66,7 +64,6 @@ class SharedMemory : boost::noncopyable {
|
||||
boost::interprocess::xsi_shared_memory::remove(m_shmid);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -106,12 +106,12 @@ public:
|
||||
|
||||
std::size_t size() const { return m_size; }
|
||||
|
||||
DataT & operator[](const int index) {
|
||||
DataT & operator[](const unsigned index) {
|
||||
BOOST_ASSERT_MSG(index < m_size, "invalid size");
|
||||
return m_ptr[index];
|
||||
}
|
||||
|
||||
const DataT & operator[](const int index) const {
|
||||
const DataT & operator[](const unsigned index) const {
|
||||
BOOST_ASSERT_MSG(index < m_size, "invalid size");
|
||||
return m_ptr[index];
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include "SharedMemoryFactory.h"
|
||||
#include "SharedMemoryVectorWrapper.h"
|
||||
|
||||
#include "../Server/DataStructures/SharedDataType.h"
|
||||
#include "../Util/OSRMException.h"
|
||||
#include "../Util/SimpleLogger.h"
|
||||
#include "../Util/TimingUtil.h"
|
||||
|
||||
Reference in New Issue
Block a user