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

◆ resize()

void MayaFlux::Memory::SeqlockArray::resize ( size_t  n)
inline

Replace the slot array with n default-constructed Seqlock instances.

Not concurrent-safe. Call only during initialisation or reconfiguration when no readers or writers are active.

Parameters
nNew slot count.

Definition at line 293 of file SeqLock.hpp.

294 {
295 m_slots.clear();
296 m_slots.reserve(n);
297 for (size_t i = 0; i < n; ++i)
298 m_slots.emplace_back(std::make_unique<Seqlock>());
299 }
std::vector< std::unique_ptr< Seqlock > > m_slots
Definition SeqLock.hpp:319

References m_slots.

Referenced by MayaFlux::Kakshya::PlotContainer::add_series(), and SeqlockArray().

+ Here is the caller graph for this function: