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

◆ handle_state()

void MayaFlux::Core::SerialDevice::handle_state ( EndpointState previous,
EndpointState current )
private

Definition at line 197 of file SerialDevice.cpp.

198{
199 m_reader->reset();
200 if (const auto readers = m_readers.read()) {
201 for (const auto& entry : *readers) {
202 entry.second->reset();
203 }
204 }
205
206 if (current != EndpointState::OPEN) {
208 }
209
210 if (m_on_state) {
211 m_on_state(previous, current);
212 }
213}
Memory::SnapshotCell< ReaderList > m_readers
std::unique_ptr< SerialReader > m_reader
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)
@ LINK_LOST
The port left OPEN, or the device was closed, before a reply.

References end_request(), handle_state(), MayaFlux::Core::LINK_LOST, m_on_state, m_reader, m_readers, MayaFlux::Core::OPEN, and take_pending().

Referenced by handle_state(), and SerialDevice().

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