|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::IO::SpatialCapture::stop | ( | ) |
Request the capture routine stop.
Frames already written are kept.
Only sets a stop flag and asks the scheduler to drop the task; returns immediately without waiting for the routine's coroutine to actually observe it and exit, since that resumption happens on the graphics thread on its own schedule. This is what makes it safe to call from any thread, including inside ~SpatialCapture(): the state the coroutine reads (CaptureState) is reference-counted independently of this object, so a SpatialCapture destroyed the instant stop() returns never leaves the still-running coroutine touching freed memory.
Definition at line 145 of file SpatialTransfer.cpp.
References MayaFlux::Vruta::TaskScheduler::cancel_task(), MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_scheduler, m_state, m_task_name, and MF_INFO.
Referenced by start(), and ~SpatialCapture().
Here is the call graph for this function:
Here is the caller graph for this function: