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

◆ handle_surface_resize()

void MayaFlux::Kakshya::WindowContainer::handle_surface_resize ( )

Reallocate m_data and m_processed_data to match the current window dimensions.

Called by WindowAccessProcessor when a surface resize is detected. Holds the data seqlock's serialized write claim.

Definition at line 434 of file WindowContainer.cpp.

435{
436 Memory::SeqlockWriteGuard g(m_data_lock);
437 m_write_head.store(0, std::memory_order_release);
438 m_frames_written.store(0, std::memory_order_release);
440}
std::atomic< uint64_t > m_frames_written

References m_data_lock, m_frames_written, m_write_head, and setup_dimensions().

+ Here is the call graph for this function: