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

◆ register_token_processor()

void MayaFlux::Vruta::TaskScheduler::register_token_processor ( ProcessingToken  token,
token_processing_func_t  processor 
)

Register a custom processor for a specific token domain.

Parameters
tokenProcessing domain to handle
processorFunction that receives tasks and processing units for custom scheduling

Allows registering domain-specific scheduling algorithms. For example, a graphics backend might register a processor that batches frame-accurate tasks for optimal GPU utilization.

Definition at line 129 of file Scheduler.cpp.

130{
132 m_token_processors[token] = std::move(processor);
133}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void ensure_domain(ProcessingToken token, unsigned int rate=0)
Initialize a processing domain if it doesn't exist.
std::unordered_map< ProcessingToken, token_processing_func_t > m_token_processors
Custom processors for specific domains.

References ensure_domain(), m_token_processors, and token.

+ Here is the call graph for this function: