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

◆ add_record()

uint64_t MayaFlux::Core::SerialInputBackend::add_record ( uint32_t device_id,
uint32_t stamp,
SerialSpec spec,
ReaderCallback callback )
private

Definition at line 501 of file SerialInputBackend.cpp.

502{
503 const uint64_t token = m_next_reader.fetch_add(1);
504 std::lock_guard lock(m_reader_mutex);
505 m_records.push_back({ .token = token, .device_id = device_id, .stamp = stamp,
506 .spec = std::move(spec), .callback = std::move(callback), .attached_to = {}, .device_token = 0 });
507 return token;
508}
std::vector< ReaderRecord > m_records

References add_record(), m_next_reader, m_reader_mutex, and m_records.

Referenced by add_reader(), add_record(), and open_device().

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