rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__WAIT_RESULT_HPP_
16 #define RCLCPP__WAIT_RESULT_HPP_
53 template<
class WaitSetT>
90 return wait_result_kind_;
105 assert(wait_set_pointer_);
106 return *wait_set_pointer_;
121 assert(wait_set_pointer_);
122 return *wait_set_pointer_;
126 : wait_result_kind_(other.wait_result_kind_),
127 wait_set_pointer_(std::exchange(other.wait_set_pointer_,
nullptr))
132 if (wait_set_pointer_) {
133 wait_set_pointer_->wait_result_release();
141 : wait_result_kind_(wait_result_kind)
148 : wait_result_kind_(wait_result_kind),
149 wait_set_pointer_(&wait_set)
154 wait_set_pointer_->wait_result_acquire();
159 WaitSetT * wait_set_pointer_ =
nullptr;
164 #endif // RCLCPP__WAIT_RESULT_HPP_
@ Ready
Definition: wait_result_kind.hpp:26
WaitResultKind
Represents the various kinds of results from waiting on a wait set.
Definition: wait_result_kind.hpp:24
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
static WaitResult from_ready_wait_result_kind(WaitSetT &wait_set)
Create WaitResult from a "ready" result.
Definition: wait_result.hpp:65
WaitResult(WaitResult &&other) noexcept
Definition: wait_result.hpp:125
static WaitResult from_timeout_wait_result_kind()
Create WaitResult from a "timeout" result.
Definition: wait_result.hpp:73
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
static WaitResult from_empty_wait_result_kind()
Create WaitResult from a "empty" result.
Definition: wait_result.hpp:81
WaitSetT & get_wait_set()
Return the rcl wait set.
Definition: wait_result.hpp:115
@ Timeout
Definition: wait_result_kind.hpp:27
~WaitResult()
Definition: wait_result.hpp:130
const WaitSetT & get_wait_set() const
Return the rcl wait set.
Definition: wait_result.hpp:99
WaitResultKind kind() const
Return the kind of the WaitResult.
Definition: wait_result.hpp:88
@ Empty
Definition: wait_result_kind.hpp:28
Interface for introspecting a wait set after waiting on it.
Definition: wait_result.hpp:54