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

◆ on_complete()

BufferPipeline & MayaFlux::Kriya::BufferPipeline::on_complete ( std::function< void()>  cb)

Register a callback fired once when pipeline execution ends.

Fires when the cycle limit exhausts or stop_continuous() terminates the loop. Not fired if the pipeline is destroyed mid-execution.

Parameters
cbCallback with no arguments.
Returns
Reference to this pipeline for chaining.

Definition at line 206 of file BufferPipeline.cpp.

207{
208 m_on_complete = std::move(cb);
209 return *this;
210}
std::function< void()> m_on_complete

References m_on_complete.