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

◆ stop_decode_thread()

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

Definition at line 492 of file VideoFileReader.cpp.

493{
494 if (!m_decode_active.load())
495 return;
496
497 m_decode_stop.store(true);
498 m_decode_cv.notify_all();
499
500 if (m_decode_thread.joinable())
501 m_decode_thread.join();
502
503 m_decode_active.store(false);
504}
std::condition_variable m_decode_cv
std::atomic< bool > m_decode_active

References m_decode_active, m_decode_cv, m_decode_stop, and m_decode_thread.

Referenced by close(), seek(), and start_decode_thread().

+ Here is the caller graph for this function: