|
ROS 2 rclcpp + rcl - rolling
rolling-6c35dd21
ROS 2 C++ Client Library with ROS Client Library
|
Public Member Functions | |
| void | prepare_block () |
| void | block () |
| void | block_for (std::chrono::nanoseconds timeout) |
| void | unblock () |
| void | unblock_thread_safe () |
Public Attributes | |
| std::mutex | mutex |
| std::condition_variable | condition_variable |
| std::atomic< bool > | wakeup = false |
Definition at line 34 of file scheduler.hpp.
|
inline |
This function is for normal unblocking, when there is no risk that the worker might get deleted. This version is more performant, as the notified thread will not directly run into the locked mutex.
Definition at line 67 of file scheduler.hpp.
Referenced by rclcpp::executors::cbg_executor::CBGScheduler::unblock_one_worker_thread().
