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

◆ pull_frame_all()

void MayaFlux::IO::CameraReader::pull_frame_all ( )

Signal the background decode thread to pull one frame.

Non-blocking. Called by IOManager::dispatch_frame_request() or the standalone IOService lambda. The decode thread wakes, calls pull_frame(), writes pixels into the container, marks it READY, then sleeps until the next signal. Safe to call from any thread.

Definition at line 263 of file CameraReader.cpp.

264{
265 {
266 std::lock_guard lock(m_decode_mutex);
267 m_frame_requested.store(true, std::memory_order_relaxed);
268 }
269 m_decode_cv.notify_one();
270}
std::atomic< bool > m_frame_requested
std::condition_variable m_decode_cv

References m_decode_cv, m_decode_mutex, and m_frame_requested.

Referenced by setup_io_service().

+ Here is the caller graph for this function: