| Iris Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
void iris_scheduler_manager_prepare (IrisScheduler *scheduler); void iris_scheduler_manager_unprepare (IrisScheduler *scheduler); void iris_scheduler_manager_request (IrisScheduler *scheduler, guint per_quantum, guint total); void iris_scheduler_manager_print_stat (void);
The scheduler manager helps provide dynamic thread-management for schedulers. It also has some helpers for debugging complex threading scenarios.
void iris_scheduler_manager_prepare (IrisScheduler *scheduler);
Prepares a scheduler for execution. Any required threads for processing are attached to the scheduler for future use.
|
An IrisScheduler |
void iris_scheduler_manager_unprepare (IrisScheduler *scheduler);
Unprepares a scheduler by removing all of its active threads and resources. The unused threads can then be repurposed to other schedulers within the system.
|
An IrisScheduler |
void iris_scheduler_manager_request (IrisScheduler *scheduler, guint per_quantum, guint total);
Request that more workers be added to a scheduler. If per_quantum
is > 0, then it will be used to try to maximize the number of threads
that can be added to minimize the time to process the queue.
|
An IrisScheduler |
|
The number of items processed in last quantum |
|
the total number of work items left |