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

◆ extend()

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

Add n default-constructed Seqlock instances after the existing slots.

Existing slots keep their address and state. Not concurrent-safe, like resize().

Parameters
nNumber of slots to add.

Definition at line 356 of file SeqLock.hpp.

357 {
358 m_slots.reserve(m_slots.size() + n);
359 for (size_t i = 0; i < n; ++i)
360 m_slots.emplace_back(std::make_unique<Seqlock>());
361 }
std::vector< std::unique_ptr< Seqlock > > m_slots
Definition SeqLock.hpp:381

References m_slots.

Referenced by MayaFlux::Kakshya::TextureContainer::append_image_layer().

+ Here is the caller graph for this function: