Scheduler¶
Provides functions that expose information about runtime schedulers.
Constructors¶
create¶
Returns¶
- Scheduler val^
Public Functions¶
schedulers¶
Returns the maximum number of schedulers available to run actors.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- U32 val
active_schedulers¶
Returns the number of schedulers currently available to run actors.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- U32 val
minimum_schedulers¶
Returns the minimum number of schedulers. The active number of schedulers is guaranteed to never drop below this number.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- U32 val
sleeping_schedulers¶
Returns the number of schedulers that are currently sleeping and not available run actors. Schedulers are put to sleep if there isn't enough work to keep all of the possible schedulers busy.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- U32 val
scaling_is_active¶
Returns true is scheduler scaling is on and the number of active schedulers can change while the program is running based on load.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- Bool val
will_yield_cpu¶
Returns true if schedulers without work will yield the CPU allowing other processes to have access.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- Bool val
scheduler_index¶
Returns the index of the current scheduler thread
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- I32 val
eq¶
Parameters¶
- that: Scheduler val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Scheduler val
Returns¶
- Bool val