zircon/kernel/kernel/scheduler.cc
// Dequeues the eligible thread with the earliest deadline that is also earlier
// than the given deadline. Returns nullptr if no threads meet the criteria or
// the run queue is empty.
Dequeues the eligible thread with the earliest deadline that is also earlier
than the given deadline. Returns nullptr if no threads meet the criteria or
the run queue is empty.
Dequeues the eligible thread with the earliest deadline that is also earlier than the given deadline . Returns nullptr if no threads meet the criteria or the run queue is empty .
Thread* Scheduler::DequeueEarlierDeadlineThread(SchedTime eligible_time, SchedTime finish_time) {
  LocalTraceDuration<KTRACE_DETAILED> trace{"dequeue_earlier_deadline_thread"_stringref};
  Thread* const eligible_thread = FindEarlierDeadlineThread(eligible_time, finish_time);
  return eligible_thread ? deadline_run_queue_.erase(*eligible_thread) : nullptr;
}
Thread * Scheduler :: DequeueEarlierDeadlineThread ( SchedTime eligible_time , SchedTime finish_time ) { LocalTraceDuration < KTRACE_DETAILED > trace { " " _stringref } ; Thread * const eligible_thread = FindEarlierDeadlineThread ( eligible_time , finish_time ) ; return eligible_thread ? deadline_run_queue_ . erase ( * eligible_thread ) : nullptr ; }
Dequeues the eligible thread with the earliest deadline that is also earlier
than the given deadline.
Dequeues the eligible thread with the earliest deadline that is also earlier than the given deadline .