Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Feb 19, 2024
1 parent 877a1a6 commit 8b15a7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unified-scheduler-logic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ use {
std::{collections::VecDeque, mem, sync::Arc},
};

/// Internal generic code. Namely contain [`ShortCounter`] and [`TokenCell`].
/// Internal utilities. Namely this contains [`ShortCounter`] and [`TokenCell`].
mod utils {
#[cfg(feature = "dev-context-only-utils")]
use qualifier_attr::qualifiers;
Expand Down Expand Up @@ -426,12 +426,14 @@ impl PageInner {
self.blocked_tasks.pop_front()
}

#[must_use]
fn blocked_next_task(&self) -> Option<(&Task, RequestedUsage)> {
self.blocked_tasks
.front()
.map(|(task, requested_usage)| (task, *requested_usage))
}

#[must_use]
fn pop_blocked_next_readonly_task(&mut self) -> Option<(Task, RequestedUsage)> {
if matches!(
self.blocked_next_task(),
Expand Down

0 comments on commit 8b15a7b

Please sign in to comment.