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

◆ reattach()

template<typename T >
void MayaFlux::Memory::SweepList< T >::reattach ( Link *  survivors)
inlineprivatenoexcept

Definition at line 225 of file SweepList.hpp.

226 {
227 Link* tail = survivors;
228 while (tail->next)
229 tail = tail->next;
230
231 tail->next = m_head.load(std::memory_order_relaxed);
232 while (!m_head.compare_exchange_weak(
233 tail->next, survivors,
234 std::memory_order_release, std::memory_order_relaxed)) {
235 }
236 }
std::atomic< Link * > m_head

References MayaFlux::Memory::SweepList< T >::m_head, and MayaFlux::Memory::SweepList< T >::Link::next.

Referenced by MayaFlux::Memory::SweepList< T >::sweep().

+ Here is the caller graph for this function: