Go to the documentation of this file.
12 #ifndef RTCTK_DATATASK_REQUEST_HPP
13 #define RTCTK_DATATASK_REQUEST_HPP
23 template <
typename REQ_TYPE>
26 explicit Request(
const REQ_TYPE& req_payload)
27 : m_req_payload(req_payload),
28 m_rep_promise(
std::make_shared<
std::promise<void>>()) {
40 return m_rep_promise->get_future();
44 m_rep_promise->set_value();
53 REQ_TYPE m_req_payload;
54 std::shared_ptr<std::promise<void>> m_rep_promise;
const REQ_TYPE & GetPayload() const
Definition: request.hpp:35
void SetReply() const
Definition: request.hpp:43
std::future< void > GetReplyFuture() const
Definition: request.hpp:39
Request(const Request &r)=default
Definition: messageQueue.hpp:20
Definition: request.hpp:24
Request & operator=(const Request &r)=default
Request(const REQ_TYPE &req_payload)
Definition: request.hpp:26
Definition: mudpiProcessingError.hpp:119