zircon/kernel/kernel/scheduler.cc
// Returns true if the given thread's time slice is adjustable under changes to
// the fair scheduler demand on the CPU.
Returns true if the given thread's time slice is adjustable under changes to
the fair scheduler demand on the CPU.
Returns true if the given thread ' s time slice is adjustable under changes to the fair scheduler demand on the CPU .
inline bool IsThreadAdjustable(const Thread* thread) {
  return !thread->IsIdle() && IsFairThread(thread) && thread->state() == THREAD_READY;
}
inline bool IsThreadAdjustable ( const Thread * thread ) { return ! thread -> IsIdle ( ) && IsFairThread ( thread ) && thread -> state ( ) == THREAD_READY ; }
Returns true if the given thread's time slice is adjustable under changes to
the fair scheduler demand on the CPU.
Returns true if the given thread ' s time slice is adjustable under changes to the fair scheduler demand on the CPU .
// Checking the thread state avoids unnecessary adjustments on a thread that // is no longer competing.