zircon/kernel/kernel/scheduler.cc
// Returns the eligible thread with the earliest deadline that is also earlier
// than the given deadline. Returns nullptr if no threads meet this criteria or
// the run queue is empty.
Returns the eligible thread with the earliest deadline that is also earlier
than the given deadline. Returns nullptr if no threads meet this criteria or
the run queue is empty.
Returns the eligible thread with the earliest deadline that is also earlier than the given deadline . Returns nullptr if no threads meet this criteria or the run queue is empty .
Thread* Scheduler::FindEarlierDeadlineThread(SchedTime eligible_time, SchedTime finish_time) {
  Thread* const eligible_thread = FindEarliestEligibleThread(&deadline_run_queue_, eligible_time);
  const bool found_earlier_deadline =
      eligible_thread && eligible_thread->scheduler_state().finish_time_ < finish_time;
  return found_earlier_deadline ? eligible_thread : nullptr;
}
Thread * Scheduler :: FindEarlierDeadlineThread ( SchedTime eligible_time , SchedTime finish_time ) { Thread * const eligible_thread = FindEarliestEligibleThread ( & deadline_run_queue_ , eligible_time ) ; const bool found_earlier_deadline = eligible_thread && eligible_thread -> scheduler_state ( ) . finish_time_ < finish_time ; return found_earlier_deadline ? eligible_thread : nullptr ; }
Returns the eligible thread with the earliest deadline that is also earlier
than the given deadline.
Returns the eligible thread with the earliest deadline that is also earlier than the given deadline .