street name file is now more canonical

This commit is contained in:
Dennis Luxen
2013-09-26 18:19:51 +02:00
parent e9d93ae210
commit 333aba8be6
7 changed files with 294 additions and 102 deletions
-3
View File
@@ -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:
+2 -2
View File
@@ -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];
}
-1
View File
@@ -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"