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

◆ stop_decode_thread()

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

Definition at line 503 of file VideoFileReader.cpp.

504{
505 if (!m_decode_active.load())
506 return;
507
508 m_decode_stop.store(true);
509 m_decode_cv.notify_all();
510
511 if (m_decode_thread.joinable())
512 m_decode_thread.join();
513
514 m_decode_active.store(false);
515}
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: