class SchedulerState

Defined at line 198 of file ../../zircon/kernel/include/kernel/scheduler_state.h

Per-thread state used by the unified version of Scheduler.

Public Methods

SchedWeight ConvertPriorityToWeight (int priority)

Converts from kernel priority value in the interval [0, 31] to weight in

the interval (0.0, 1.0]. See the definition of SchedWeight for an

explanation of the weight distribution.

Defined at line 441 of file ../../zircon/kernel/include/kernel/scheduler_state.h

void SchedulerState ()

Defined at line 445 of file ../../zircon/kernel/include/kernel/scheduler_state.h

void SchedulerState (const SchedulerState::BaseProfile & base_profile)

Defined at line 446 of file ../../zircon/kernel/include/kernel/scheduler_state.h

void SchedulerState (const SchedulerState & )

Defined at line 449 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedulerState & operator= (const SchedulerState & )

Defined at line 450 of file ../../zircon/kernel/include/kernel/scheduler_state.h

cpu_mask_t GetEffectiveCpuMask (cpu_mask_t active_mask)

Returns the effective mask of CPUs a thread may run on, based on the

thread's affinity masks and CPUs currently active on the system.

Defined at line 454 of file ../../zircon/kernel/include/kernel/scheduler_state.h

const EffectiveProfile & effective_profile ()

Returns the current effective profile for this thread.

Defined at line 469 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDiscipline discipline ()

Returns the type of scheduling discipline for this thread.

Defined at line 472 of file ../../zircon/kernel/include/kernel/scheduler_state.h

KeyType key ()

Returns the key used to order the run queue.

Defined at line 475 of file ../../zircon/kernel/include/kernel/scheduler_state.h

uint64_t flow_id ()

Defined at line 477 of file ../../zircon/kernel/include/kernel/scheduler_state.h

zx_instant_mono_t last_started_running ()

Defined at line 479 of file ../../zircon/kernel/include/kernel/scheduler_state.h

zx_duration_mono_t runtime_ns ()

Defined at line 480 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDuration expected_runtime_ns ()

Defined at line 482 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDuration time_slice_ns ()

Defined at line 483 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDuration time_slice_used_ns ()

Defined at line 484 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDuration remaining_time_slice_ns ()

Defined at line 485 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedTime start_time ()

Defined at line 487 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedTime finish_time ()

Defined at line 488 of file ../../zircon/kernel/include/kernel/scheduler_state.h

SchedDuration effective_period ()

Defined at line 489 of file ../../zircon/kernel/include/kernel/scheduler_state.h

cpu_mask_t hard_affinity ()

Defined at line 491 of file ../../zircon/kernel/include/kernel/scheduler_state.h

cpu_mask_t soft_affinity ()

Defined at line 492 of file ../../zircon/kernel/include/kernel/scheduler_state.h

int32_t weight ()

Defined at line 494 of file ../../zircon/kernel/include/kernel/scheduler_state.h

cpu_num_t curr_cpu ()

Defined at line 500 of file ../../zircon/kernel/include/kernel/scheduler_state.h

cpu_num_t last_cpu ()

Defined at line 501 of file ../../zircon/kernel/include/kernel/scheduler_state.h

thread_state state ()

Defined at line 503 of file ../../zircon/kernel/include/kernel/scheduler_state.h

void set_state (thread_state state)

Defined at line 504 of file ../../zircon/kernel/include/kernel/scheduler_state.h

Enumerations

enum ProfileDirtyFlag
Name Value
Clean 0
BaseDirty 1
InheritedDirty 2

Defined at line 231 of file ../../zircon/kernel/include/kernel/scheduler_state.h

Records

Friends

void SchedulerState (const Thread * , bool )
void SchedulerState (Thread * , const char * )
class Thread
class ThreadEffectiveProfileObserver
class WaitQueueOrderingTests
class LoadBalancerTest
class WaitQueueCollection
class WaitQueue
class OwnedWaitQueue
class Scheduler