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

◆ drain_async()

void MayaFlux::Yantra::ComputeMatrix::drain_async ( )
inline

Block until all in-flight async chains complete.

Called automatically by the destructor. May also be called explicitly before teardown of any resource a chain callback might write into.

Definition at line 619 of file ComputeMatrix.hpp.

620 {
621 std::lock_guard lk(m_async_mtx);
622 for (auto& f : m_async_futures) {
623 f.wait();
624 }
625
626 m_async_futures.clear();
627 }
std::vector< std::future< void > > m_async_futures