rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
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>
26 namespace wait_set_policies
243 #endif // RCLCPP__WAIT_SET_POLICIES__DETAIL__WRITE_PREFERRING_READ_WRITE_LOCK_HPP_
friend WritePreferringReadWriteLock
Definition: write_preferring_read_write_lock.hpp:194
WriteMutex write_mutex_
Definition: write_preferring_read_write_lock.hpp:235
ReadMutex & get_read_mutex()
Return read mutex which can be used with standard constructs like std::lock_guard.
std::condition_variable condition_variable_
Definition: write_preferring_read_write_lock.hpp:233
std::size_t number_of_writers_waiting_
Definition: write_preferring_read_write_lock.hpp:230
Read mutex for the WritePreferringReadWriteLock.
Definition: write_preferring_read_write_lock.hpp:180
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
WritePreferringReadWriteLock(std::function< void()> enter_waiting_function=nullptr)
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
WriteMutex & get_write_mutex()
Return write mutex which can be used with standard constructs like std::lock_guard.
bool writer_active_
Definition: write_preferring_read_write_lock.hpp:231
std::function< void()> enter_waiting_function_
Definition: write_preferring_read_write_lock.hpp:236
Write mutex for the WritePreferringReadWriteLock.
Definition: write_preferring_read_write_lock.hpp:201
bool reader_active_
Definition: write_preferring_read_write_lock.hpp:229
WritePreferringReadWriteLock & parent_lock_
Definition: write_preferring_read_write_lock.hpp:192
WritePreferringReadWriteLock & parent_lock_
Definition: write_preferring_read_write_lock.hpp:213
friend WritePreferringReadWriteLock
Definition: write_preferring_read_write_lock.hpp:215
ReadMutex read_mutex_
Definition: write_preferring_read_write_lock.hpp:234
Writer-perferring read-write lock.
Definition: write_preferring_read_write_lock.hpp:170
std::mutex mutex_
Definition: write_preferring_read_write_lock.hpp:232