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
189 m_handoff.store(k_retired, std::memory_order_release);
190
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 }
197}
std::shared_ptr< Prepared > m_slot
std::shared_ptr< Prepared > m_active
std::atomic< uint8_t > m_handoff
void bind(Prepared &prepared, bool keep)