MayaFlux 1.0.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 541 of file Scheduler.cpp.

542{
543 if (m_conditional_thread.joinable())
544 return;
545
546 m_conditional_thread = std::jthread([this](const std::stop_token& st) {
547 while (!st.stop_requested())
549 });
550}
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: