1 #ifndef BEHAVIORTREECORE_WAKEUP_SIGNAL_HPP 2 #define BEHAVIORTREECORE_WAKEUP_SIGNAL_HPP 6 #include <condition_variable> 15 bool waitFor(std::chrono::system_clock::duration tm)
17 std::unique_lock<std::mutex> lk(
mutex_);
18 auto res =
cv_.wait_for(lk, tm, [
this]{
28 std::lock_guard<std::mutex> lk(
mutex_);
37 std::condition_variable
cv_;
43 #endif // BEHAVIORTREECORE_WAKEUP_SIGNAL_HPP bool waitFor(std::chrono::system_clock::duration tm)
Return true if the.
static pthread_mutex_t mutex
std::condition_variable cv_