15 #ifndef RCLCPP__WAIT_SET_POLICIES__DETAIL__WRITE_PREFERRING_READ_WRITE_LOCK_HPP_
16 #define RCLCPP__WAIT_SET_POLICIES__DETAIL__WRITE_PREFERRING_READ_WRITE_LOCK_HPP_
18 #include <condition_variable>
22 #include "rclcpp/visibility_control.hpp"
26 namespace wait_set_policies
229 bool reader_active_ =
false;
230 std::size_t number_of_writers_waiting_ = 0;
231 bool writer_active_ =
false;
233 std::condition_variable condition_variable_;
236 std::function<void()> enter_waiting_function_;
Read mutex for the WritePreferringReadWriteLock.
Write mutex for the WritePreferringReadWriteLock.
Writer-perferring read-write lock.
RCLCPP_PUBLIC WriteMutex & get_write_mutex()
Return write mutex which can be used with standard constructs like std::lock_guard.
RCLCPP_PUBLIC ReadMutex & get_read_mutex()
Return read mutex which can be used with standard constructs like std::lock_guard.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.