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

◆ remove_reader()

void MayaFlux::Core::SerialInputBackend::remove_reader ( uint64_t token)

Stop a reader.

No-op for an unknown token.

Definition at line 545 of file SerialInputBackend.cpp.

546{
547 std::lock_guard lock(m_reader_mutex);
548 const auto it = std::ranges::find(m_records, token, &ReaderRecord::token);
549 if (it == m_records.end()) {
550 return;
551 }
552 if (const auto device = it->attached_to.lock()) {
553 device->remove_reader(it->device_token);
554 }
555 m_records.erase(it);
556}
std::vector< ReaderRecord > m_records

References m_reader_mutex, m_records, remove_reader(), and MayaFlux::Core::SerialInputBackend::ReaderRecord::token.

Referenced by detach_view(), and remove_reader().

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