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

◆ stop_decode_thread()

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

Definition at line 497 of file VideoFileReader.cpp.

498{
499 if (!m_decode_active.load())
500 return;
501
502 m_decode_stop.store(true);
503 m_decode_cv.notify_all();
504
505 if (m_decode_thread.joinable())
506 m_decode_thread.join();
507
508 m_decode_active.store(false);
509}
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: