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

◆ invalidate_ring()

void MayaFlux::Kakshya::VideoStreamContainer::invalidate_ring ( )

Invalidate all ring slots.

Called before seek.

Definition at line 147 of file VideoStreamContainer.cpp.

148{
149 for (auto& sf : m_slot_frame)
150 sf.store(UINT64_MAX, std::memory_order_relaxed);
151
152 m_ready_queue.reset();
153 std::atomic_thread_fence(std::memory_order_release);
154}
std::vector< std::atomic< uint64_t > > m_slot_frame
Memory::LockFreeQueue< uint64_t, READY_QUEUE_CAPACITY > m_ready_queue

References m_ready_queue, and m_slot_frame.