MayaFlux 0.5.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 160 of file VideoStreamContainer.cpp.

161{
162 for (auto& sf : m_slot_frame)
163 sf.store(UINT64_MAX, std::memory_order_relaxed);
164
165 m_ready_queue.reset();
166 std::atomic_thread_fence(std::memory_order_release);
167}
std::vector< std::atomic< uint64_t > > m_slot_frame
Memory::LockFreeQueue< uint64_t, READY_QUEUE_CAPACITY > m_ready_queue
std::shared_ptr< T > store(std::shared_ptr< T > obj)
Transfer ownership of an existing object to the persistent store for process lifetime.
Definition Persist.hpp:28

References m_ready_queue, and m_slot_frame.