1#ifndef BEHAVIORTREECORE_WAKEUP_SIGNAL_HPP
2#define BEHAVIORTREECORE_WAKEUP_SIGNAL_HPP
6#include <condition_variable>
17 bool waitFor(std::chrono::microseconds usec)
19 std::unique_lock<std::mutex> lk(mutex_);
20 auto res = cv_.wait_for(lk, usec, [
this] {
return ready_.load(); });
33 std::condition_variable cv_;
34 std::atomic_bool ready_ =
false;
Definition: wakeup_signal.hpp:13
bool waitFor(std::chrono::microseconds usec)
Definition: wakeup_signal.hpp:17
Definition: action_node.h:24