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

◆ assign()

template<typename T>
void MayaFlux::ControlSnapshot< T >::assign ( const ControlSnapshot< T > & incoming)
inline

Takes the value incoming holds, so the next due() is true.

Definition at line 86 of file ControlSnapshot.hpp.

87 {
88 const auto view = incoming.m_cell.read();
89 if (view) {
90 m_cell.publish(*view);
92 }
94 }
std::atomic< bool > m_dirty
Memory::SnapshotCell< std::shared_ptr< const T > > m_cell
One pending value of any copyable type, such as a string or a list, set from any thread.
Guard read() const noexcept
Pins the current snapshot.

References ControlSnapshot(), m_cell, m_dirty, m_set, and MayaFlux::Memory::SnapshotCell< T >::read().

Here is the call graph for this function: