From 2c12ab84c6b9584f4c1306264e6153924239b5a6 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Sun, 16 Jun 2024 18:24:41 +0200 Subject: [PATCH] change the method name to get_async_thread --- include/realtime_tools/async_function_handler.hpp | 2 +- test/test_async_function_handler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/realtime_tools/async_function_handler.hpp b/include/realtime_tools/async_function_handler.hpp index 6137508e..7f5c67db 100644 --- a/include/realtime_tools/async_function_handler.hpp +++ b/include/realtime_tools/async_function_handler.hpp @@ -185,7 +185,7 @@ class AsyncFunctionHandler /** * @return The async update thread */ - std::thread & get_thread() { return thread_; } + std::thread & get_async_thread() { return thread_; } /// Check if the async update method is in progress /** diff --git a/test/test_async_function_handler.cpp b/test/test_async_function_handler.cpp index 7335a818..0139a7d8 100644 --- a/test/test_async_function_handler.cpp +++ b/test/test_async_function_handler.cpp @@ -123,7 +123,7 @@ TEST_F(AsyncFunctionHandlerTest, check_triggering) ASSERT_TRUE(async_class.get_handler().is_initialized()); ASSERT_TRUE(async_class.get_handler().is_running()); ASSERT_FALSE(async_class.get_handler().is_stopped()); - ASSERT_TRUE(async_class.get_handler().get_thread().joinable()); + ASSERT_TRUE(async_class.get_handler().get_async_thread().joinable()); ASSERT_TRUE(async_class.get_handler().is_trigger_cycle_in_progress()); async_class.get_handler().wait_for_trigger_cycle_to_finish(); ASSERT_FALSE(async_class.get_handler().is_trigger_cycle_in_progress());