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

◆ stop_decode_thread()

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

Definition at line 286 of file CameraReader.cpp.

287{
288 if (!m_decode_active.load())
289 return;
290
291 m_decode_stop.store(true);
292 m_decode_cv.notify_all();
293
294 if (m_decode_thread.joinable())
295 m_decode_thread.join();
296
297 m_decode_active.store(false);
298}
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: