refactor init to not be global (#336)
* refactor init to not be global Signed-off-by: William Woodall <william@osrfoundation.org> * style changes Signed-off-by: William Woodall <william@osrfoundation.org> * refactor to hide use of C11 atomics in implementation Signed-off-by: William Woodall <william@osrfoundation.org> * fix new action tests Signed-off-by: William Woodall <william@osrfoundation.org> * use alternative atomic init for Windows support * updates after rebase Signed-off-by: William Woodall <william@osrfoundation.org> * cleanup rmw_init_options before copying Signed-off-by: William Woodall <william@osrfoundation.org> * fix two bugs in new init code * relax validity checks in a few places to facilitate post shutdown cleanup Signed-off-by: William Woodall <william@osrfoundation.org> * fixing tests for new API behavior Signed-off-by: William Woodall <william@osrfoundation.org> * to allocator -> to allocate * acutally call rmw_shutdown() and address review comments Signed-off-by: William Woodall <william@osrfoundation.org>
This commit is contained in:
parent
dfaa412bbf
commit
97ad0013e2
55 changed files with 1951 additions and 629 deletions
|
@ -61,6 +61,7 @@ if(BUILD_TESTING)
|
|||
find_package(ament_cmake_gtest REQUIRED)
|
||||
find_package(ament_lint_auto REQUIRED)
|
||||
find_package(rcl REQUIRED)
|
||||
find_package(osrf_testing_tools_cpp REQUIRED)
|
||||
ament_lint_auto_find_test_dependencies()
|
||||
|
||||
# Gtests
|
||||
|
@ -70,6 +71,7 @@ if(BUILD_TESTING)
|
|||
if(TARGET test_default_state_machine)
|
||||
target_include_directories(test_default_state_machine PUBLIC
|
||||
${rcl_INCLUDE_DIRS}
|
||||
${osrf_testing_tools_cpp_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(test_default_state_machine ${PROJECT_NAME})
|
||||
endif()
|
||||
|
@ -79,6 +81,7 @@ if(BUILD_TESTING)
|
|||
if(TARGET test_multiple_instances)
|
||||
target_include_directories(test_multiple_instances PUBLIC
|
||||
${rcl_INCLUDE_DIRS}
|
||||
${osrf_testing_tools_cpp_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(test_multiple_instances ${PROJECT_NAME})
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue