From 6ec1aeaf5d4ceec3af91857e245730cb8b11f684 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Fri, 24 Nov 2017 15:16:50 -0800 Subject: [PATCH] use wait set in doc --- rmw_fastrtps_cpp/src/rmw_wait.cpp | 6 +++--- rmw_fastrtps_cpp/src/rmw_wait_set.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rmw_fastrtps_cpp/src/rmw_wait.cpp b/rmw_fastrtps_cpp/src/rmw_wait.cpp index c4056cc97..047ca15de 100644 --- a/rmw_fastrtps_cpp/src/rmw_wait.cpp +++ b/rmw_fastrtps_cpp/src/rmw_wait.cpp @@ -86,7 +86,7 @@ rmw_wait( const rmw_time_t * wait_timeout) { if (!wait_set) { - RMW_SET_ERROR_MSG("Waitset handle is null"); + RMW_SET_ERROR_MSG("wait set handle is null"); return RMW_RET_ERROR; } CustomWaitsetInfo * wait_set_info = static_cast(wait_set->data); @@ -97,11 +97,11 @@ rmw_wait( std::mutex * conditionMutex = &wait_set_info->condition_mutex; std::condition_variable * conditionVariable = &wait_set_info->condition; if (!conditionMutex) { - RMW_SET_ERROR_MSG("Mutex for wait_set was null"); + RMW_SET_ERROR_MSG("Mutex for wait set was null"); return RMW_RET_ERROR; } if (!conditionVariable) { - RMW_SET_ERROR_MSG("Condition variable for wait_set was null"); + RMW_SET_ERROR_MSG("Condition variable for wait set was null"); return RMW_RET_ERROR; } diff --git a/rmw_fastrtps_cpp/src/rmw_wait_set.cpp b/rmw_fastrtps_cpp/src/rmw_wait_set.cpp index 205ba355b..806160337 100644 --- a/rmw_fastrtps_cpp/src/rmw_wait_set.cpp +++ b/rmw_fastrtps_cpp/src/rmw_wait_set.cpp @@ -31,7 +31,7 @@ rmw_create_wait_set(size_t max_conditions) // From here onward, error results in unrolling in the goto fail block. if (!wait_set) { - RMW_SET_ERROR_MSG("failed to allocate wait_set"); + RMW_SET_ERROR_MSG("failed to allocate wait set"); goto fail; } wait_set->implementation_identifier = eprosima_fastrtps_identifier; @@ -40,7 +40,7 @@ rmw_create_wait_set(size_t max_conditions) wait_set_info = static_cast(wait_set->data); RMW_TRY_PLACEMENT_NEW(wait_set_info, wait_set_info, goto fail, CustomWaitsetInfo, ) if (!wait_set_info) { - RMW_SET_ERROR_MSG("failed to construct wait_set info struct"); + RMW_SET_ERROR_MSG("failed to construct wait set info struct"); goto fail; } @@ -62,7 +62,7 @@ rmw_ret_t rmw_destroy_wait_set(rmw_wait_set_t * wait_set) { if (!wait_set) { - RMW_SET_ERROR_MSG("wait_set handle is null"); + RMW_SET_ERROR_MSG("wait set handle is null"); return RMW_RET_ERROR; } RMW_CHECK_TYPE_IDENTIFIERS_MATCH( @@ -73,12 +73,12 @@ rmw_destroy_wait_set(rmw_wait_set_t * wait_set) auto result = RMW_RET_OK; auto wait_set_info = static_cast(wait_set->data); if (!wait_set_info) { - RMW_SET_ERROR_MSG("wait_set info is null"); + RMW_SET_ERROR_MSG("wait set info is null"); return RMW_RET_ERROR; } std::mutex * conditionMutex = &wait_set_info->condition_mutex; if (!conditionMutex) { - RMW_SET_ERROR_MSG("wait_set mutex is null"); + RMW_SET_ERROR_MSG("wait set mutex is null"); return RMW_RET_ERROR; }