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

◆ install_pending()

void MayaFlux::Nodes::Network::DuctNetwork::install_pending ( )
private

Definition at line 181 of file DuctNetwork.cpp.

182{
183 uint8_t expected = k_ready;
184 if (!m_handoff.compare_exchange_strong(expected, k_busy, std::memory_order_acq_rel)) {
185 return;
186 }
187
188 std::swap(m_active, m_slot);
189 m_handoff.store(k_retired, std::memory_order_release);
190
191 const bool carry = m_active->keep_state && m_slot && !m_slot->pressure.empty();
192 if (carry) {
193 Acoustics::resample_line(m_slot->pressure, m_active->pressure, 0.0);
194 Acoustics::resample_line(m_slot->velocity, m_active->velocity, 0.5);
195 }
196 bind(*m_active, carry);
197}
std::shared_ptr< Prepared > m_slot
std::shared_ptr< Prepared > m_active
void bind(Prepared &prepared, bool keep)

References bind(), m_active, m_handoff, and m_slot.

Referenced by process_batch().

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