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
suspended_schedulers¶
Returns the number of schedulers that have suspended and are not available to run actors. A scheduler suspends when there isn't enough work to keep all of the schedulers busy.
Parameters¶
- auth: SchedulerInfoAuth val
Returns¶
- U32 val
scaling_is_active¶
Returns true if scheduler scaling is on and the number of active schedulers can change with load while the program is running.
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