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

◆ stop_decode_thread()

void MayaFlux::IO::CameraReader::stop_decode_thread ( )
private

Definition at line 295 of file CameraReader.cpp.

296{
297 if (!m_decode_active.load())
298 return;
299
300 m_decode_stop.store(true);
301 m_decode_cv.notify_all();
302
303 if (m_decode_thread.joinable())
304 m_decode_thread.join();
305
306 m_decode_active.store(false);
307}
std::atomic< bool > m_decode_stop
std::atomic< bool > m_decode_active
std::condition_variable m_decode_cv

References m_decode_active, m_decode_cv, m_decode_stop, and m_decode_thread.

Referenced by close(), and start_decode_thread().

+ Here is the caller graph for this function: