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

◆ publish()

template<typename T>
void MayaFlux::Memory::SnapshotCell< T >::publish ( T value)
inline

Replaces the snapshot with value, whatever it was.

Concurrent publishes are ordered arbitrarily and the last one wins. Use update() when the new value depends on the old one.

Definition at line 147 of file SnapshotCell.hpp.

148 {
150 }
Lock-free cell holding one immutable snapshot of a value, read without blocking.

References replace().

Referenced by MayaFlux::Platform::detail::memoize_nonempty(), and MayaFlux::Core::BackendWindowHandler::start_readback_thread().

Here is the call graph for this function:
Here is the caller graph for this function: