Skip to content

Commit

Permalink
change the method name to get_async_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jun 16, 2024
1 parent 28bb919 commit 2c12ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/realtime_tools/async_function_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
/**
Expand Down
2 changes: 1 addition & 1 deletion test/test_async_function_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 2c12ab8

Please sign in to comment.