Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Sep 19, 2024
1 parent c0541a6 commit eb4c1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unified-scheduler-logic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,9 @@ impl SchedulingStateMachine {

#[must_use]
pub fn schedule_next_buffered_task(&mut self) -> Option<Task> {
while let Some(peeked_task) = self.buffered_task_queue.pop() {
while let Some(task) = self.buffered_task_queue.pop() {
assert!(self.is_task_runnable());
if peeked_task.has_blocked_usage(&mut self.count_token) {
if task.has_blocked_usage(&mut self.count_token) {
continue;
} else {
self.executing_task_count.increment_self();
Expand Down

0 comments on commit eb4c1ed

Please sign in to comment.