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 207 of file VideoStreamContainer.cpp.

208{
209 for (auto& sf : m_slot_frame)
210 sf.store(UINT64_MAX, std::memory_order_relaxed);
211
212 m_ready_queue.reset();
213 std::atomic_thread_fence(std::memory_order_release);
214}
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.