zircon/kernel/kernel/scheduler.cc
inline bool IsThreadAdjustable(const thread_t* thread) {
  // Checking the thread state avoids unnecessary adjustments on a thread that
  // is no longer competing.
  // TODO(eieio): Fix thread_is_idle to take a const pointer to the thread.
  return !thread_is_idle(const_cast<thread_t*>(thread)) && 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.
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_t* thread) {
  return !thread_is_idle(const_cast<thread_t*>(thread)) && IsFairThread(thread) &&
         thread->state == THREAD_READY;
}
inline bool IsThreadAdjustable ( const thread_t * thread ) { return ! thread_is_idle ( const_cast < thread_t * > ( thread ) ) && 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. // TODO(eieio): Fix thread_is_idle to take a const pointer to the thread.