osrm-datastore handles manangement of shared memory
This commit is contained in:
		
							parent
							
								
									0daf49a1da
								
							
						
					
					
						commit
						026da34ce9
					
				| @ -44,6 +44,8 @@ add_executable(osrm-prepare ${PrepareSources} ) | |||||||
| add_executable(osrm-routed routed.cpp ) | add_executable(osrm-routed routed.cpp ) | ||||||
| set_target_properties(osrm-routed PROPERTIES COMPILE_FLAGS -DROUTED) | set_target_properties(osrm-routed PROPERTIES COMPILE_FLAGS -DROUTED) | ||||||
| 
 | 
 | ||||||
|  | add_executable(osrm-datastore datastore.cpp) | ||||||
|  | 
 | ||||||
| file(GLOB DescriptorGlob Descriptors/*.cpp) | file(GLOB DescriptorGlob Descriptors/*.cpp) | ||||||
| file(GLOB DatastructureGlob Datastructures/*.cpp) | file(GLOB DatastructureGlob Datastructures/*.cpp) | ||||||
| file(GLOB LibOSRMGlob Library/*.cpp) | file(GLOB LibOSRMGlob Library/*.cpp) | ||||||
| @ -100,6 +102,7 @@ ENDIF( APPLE ) | |||||||
| target_link_libraries( osrm-extract ${Boost_LIBRARIES} UUID ) | target_link_libraries( osrm-extract ${Boost_LIBRARIES} UUID ) | ||||||
| target_link_libraries( osrm-prepare ${Boost_LIBRARIES} UUID ) | target_link_libraries( osrm-prepare ${Boost_LIBRARIES} UUID ) | ||||||
| target_link_libraries( osrm-routed ${Boost_LIBRARIES} OSRM UUID ) | target_link_libraries( osrm-routed ${Boost_LIBRARIES} OSRM UUID ) | ||||||
|  | target_link_libraries( osrm-datastore ${Boost_LIBRARIES} UUID ) | ||||||
| 
 | 
 | ||||||
| find_package ( BZip2 REQUIRED ) | find_package ( BZip2 REQUIRED ) | ||||||
| include_directories(${BZIP_INCLUDE_DIRS}) | include_directories(${BZIP_INCLUDE_DIRS}) | ||||||
|  | |||||||
							
								
								
									
										36
									
								
								datastore.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								datastore.cpp
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | |||||||
|  | /*
 | ||||||
|  |     open source routing machine | ||||||
|  |     Copyright (C) Dennis Luxen, others 2010 | ||||||
|  | 
 | ||||||
|  | This program is free software; you can redistribute it and/or modify | ||||||
|  | it under the terms of the GNU AFFERO General Public License as published by | ||||||
|  | the Free Software Foundation; either version 3 of the License, or | ||||||
|  | any later version. | ||||||
|  | 
 | ||||||
|  | This program is distributed in the hope that it will be useful, | ||||||
|  | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  | GNU General Public License for more details. | ||||||
|  | 
 | ||||||
|  | You should have received a copy of the GNU Affero General Public License | ||||||
|  | along with this program; if not, write to the Free Software | ||||||
|  | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | ||||||
|  | or see http://www.gnu.org/licenses/agpl.txt.
 | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | #include "DataStructures/SharedMemoryFactory.h" | ||||||
|  | #include "DataStructures/SharedMemoryVectorWrapper.h" | ||||||
|  | #include "Util/SimpleLogger.h" | ||||||
|  | #include "typedefs.h" | ||||||
|  | 
 | ||||||
|  | int main(int argc, char * argv[]) { | ||||||
|  |     try { | ||||||
|  |         LogPolicy::GetInstance().Unmute(); | ||||||
|  | 
 | ||||||
|  |     } catch(const std::exception & e) { | ||||||
|  |         SimpleLogger().Write(logWARNING) << "caught exception: " << e.what(); | ||||||
|  | 
 | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     return 0; | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user