Public Member Functions | Private Attributes | List of all members
BT::WakeUpSignal Class Reference

#include <wakeup_signal.hpp>

Public Member Functions

void emitSignal ()
 
bool waitFor (std::chrono::microseconds usec)
 

Private Attributes

std::condition_variable cv_
 
std::mutex mutex_
 
std::atomic_bool ready_ = false
 

Detailed Description

Definition at line 12 of file wakeup_signal.hpp.

Member Function Documentation

◆ emitSignal()

void BT::WakeUpSignal::emitSignal ( )
inline

Definition at line 25 of file wakeup_signal.hpp.

◆ waitFor()

bool BT::WakeUpSignal::waitFor ( std::chrono::microseconds  usec)
inline

Return true if the timeout was NOT reached and the signal was received.

Definition at line 17 of file wakeup_signal.hpp.

Member Data Documentation

◆ cv_

std::condition_variable BT::WakeUpSignal::cv_
private

Definition at line 33 of file wakeup_signal.hpp.

◆ mutex_

std::mutex BT::WakeUpSignal::mutex_
private

Definition at line 32 of file wakeup_signal.hpp.

◆ ready_

std::atomic_bool BT::WakeUpSignal::ready_ = false
private

Definition at line 34 of file wakeup_signal.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18