ROS 2 rclcpp + rcl - rolling  rolling-6c35dd21
ROS 2 C++ Client Library with ROS Client Library
Public Member Functions | Public Attributes | List of all members
rclcpp::executors::cbg_executor::Worker Struct Reference

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
 

Detailed Description

Definition at line 34 of file scheduler.hpp.

Member Function Documentation

◆ unblock()

void rclcpp::executors::cbg_executor::Worker::unblock ( )
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().

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: