MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ end_request()

void MayaFlux::Core::SerialDevice::end_request ( const std::shared_ptr< Pending > & request,
SerialReply how,
Transitive::Protocol::Message reply )
private

Definition at line 253 of file SerialDevice.cpp.

254{
255 if (!request) {
256 return;
257 }
258 if (const auto token = request->timer.exchange(0); token != 0) {
259 m_link->cancel_post(token);
260 }
261 request->done(how, reply);
262}
std::unique_ptr< ISerialLink > m_link
bool request(std::span< const uint8_t > command, ReplyMatcher matcher, std::chrono::milliseconds timeout, ReplyCallback done)
Send a command and wait for its reply.

References end_request(), m_link, and request().

Referenced by close(), complete_request(), end_request(), and handle_state().

Here is the call graph for this function:
Here is the caller graph for this function: