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

◆ copy_state()

template<typename T>
void MayaFlux::ControlSnapshot< T >::copy_state ( const ControlSnapshot< T > & other)
inlineprivate

Definition at line 100 of file ControlSnapshot.hpp.

101 {
102 const auto view = other.m_cell.read();
103 if (view) {
104 m_cell.publish(*view);
105 }
108 }
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().

Referenced by ControlSnapshot(), ControlSnapshot(), operator=(), and operator=().

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