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

◆ start_conditional_thread()

void MayaFlux::Vruta::TaskScheduler::start_conditional_thread ( )
private

Start the conditional task processing thread if not already running.

This method ensures that the thread responsible for processing conditional tasks is started when the first conditional task is added. It checks if the thread is already running to avoid starting multiple threads.

Definition at line 443 of file Scheduler.cpp.

444{
445 if (m_conditional_thread.joinable())
446 return;
447
448 m_conditional_thread = std::jthread([this](const std::stop_token& st) {
449 while (!st.stop_requested())
451 });
452}
void pump_conditional()
Pump the conditional task list in a separate thread.

References m_conditional_thread, and pump_conditional().

Referenced by add_task().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: