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

◆ initialize_routine_state()

bool MayaFlux::Vruta::TaskScheduler::initialize_routine_state ( const std::shared_ptr< Routine > &  routine,
ProcessingToken  token 
)
private

Initialize a routine's state for a specific domain.

Parameters
routineRoutine to initialize
tokenProcessing domain

Definition at line 428 of file Scheduler.cpp.

429{
430 if (!routine) {
431 return false;
432 }
433
434 auto clock_it = m_token_clocks.find(token);
435 if (clock_it == m_token_clocks.end()) {
436 return false;
437 }
438
439 uint64_t current_context = clock_it->second->current_position();
440 return routine->initialize_state(current_context);
441}
std::unordered_map< ProcessingToken, std::shared_ptr< IClock > > m_token_clocks
Clock instances for each processing domain.

References m_token_clocks.

Referenced by add_task().

+ Here is the caller graph for this function: