141 std::unique_lock<std::mutex> lk(
m_);
143 std::stringstream events_stringstream;
144 for (
const auto& event : clear_events)
146 events_stringstream <<
event <<
", ";
148 RCLCPP_DEBUG(LOGGER,
"Adding Barricade[%s]", events_stringstream.str().c_str());
151 [
this](
const std::string& event) { return this->waitlist_.count(event) == 0; });
154 auto end_time_point = std::chrono::system_clock::now() + std::chrono::milliseconds(timeout_ms);
164 std::cv_status status =
cv_.wait_for(lk, end_time_point - std::chrono::system_clock::now());
165 if (status == std::cv_status::timeout)