MayaFlux 1.0.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. Served by RelaxationStepProcessor after the next cycle that dispatches, once that dispatch has completed: a device-to-host copy of the newly-front state buffer is signalled on snapshot_source().

Definition at line 233 of file RelaxationGridBuffer.hpp.

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