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

◆ request_snapshot()

void MayaFlux::Buffers::RelaxationGridBuffer::request_snapshot ( )
inline

Request a snapshot of the next completed generation.

Wait-free. Consumed by RelaxationStepProcessor on the next on_after_execute call, which stages a device-to-host download of the newly-front state buffer and signals snapshot_source() with the result.

Definition at line 160 of file RelaxationGridBuffer.hpp.

160{ m_snapshot_requested.store(true, std::memory_order_release); }
std::atomic< bool > m_snapshot_requested
Set by request_snapshot(), cleared by consume_snapshot_request().