Definition at line 215 of file SerialDevice.cpp.
216{
217 std::shared_ptr<Pending>
request;
218 if (
const auto held =
m_pending.read()) {
220 }
222 return false;
223 }
224
226 return false;
227 }
229 return true;
230}
Memory::SnapshotCell< std::shared_ptr< Pending > > m_pending
std::shared_ptr< Pending > take_pending(const std::shared_ptr< Pending > &only={})
void end_request(const std::shared_ptr< Pending > &request, SerialReply how, Transitive::Protocol::Message reply)
bool request(std::span< const uint8_t > command, ReplyMatcher matcher, std::chrono::milliseconds timeout, ReplyCallback done)
Send a command and wait for its reply.
@ REPLIED
A message the matcher accepted arrived.
References complete_request(), end_request(), m_pending, MayaFlux::Core::REPLIED, request(), and take_pending().
Referenced by complete_request(), and SerialDevice().