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

◆ reclaim()

template<typename T>
void MayaFlux::Memory::SnapshotCell< T >::reclaim ( )
inlineprivate

Definition at line 215 of file SnapshotCell.hpp.

216 {
217 if (m_retired.empty()) {
218 return;
219 }
220 m_retired.sweep(
221 [this](std::unique_ptr<const T>&) { return m_readers.load() == 0; },
223 }
SweepList< std::unique_ptr< const T > > m_retired
std::atomic< uint32_t > m_readers
void reset()
Empties the cell.
Lock-free cell holding one immutable snapshot of a value, read without blocking.

References m_readers, and m_retired.

Referenced by retire().

Here is the caller graph for this function: