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

◆ process()

void MayaFlux::Nodes::Network::RewriteOperator::process ( float dt)
overridevirtual

Process for one batch cycle.

Parameters
dtTime delta or sample count (operator-specific)

Implements MayaFlux::Nodes::Network::NetworkOperator.

Definition at line 398 of file RewriteOperator.cpp.

399{
400 auto next = std::move(m_deferred);
401 if (!next.word) {
402 next = m_ready.pop();
403 if (!next.word) {
404 return;
405 }
406 }
407
408 if (!m_retired.push(m_active)) {
409 m_deferred = std::move(next);
410 return;
411 }
412
413 m_active = std::move(next);
414 m_active_generation.store(m_active.word->generation, std::memory_order_release);
415 m_active_submission_id.store(m_active.id, std::memory_order_release);
416}

References m_active, m_active_generation, m_active_submission_id, m_deferred, m_ready, m_retired, and process().

Referenced by process().

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