Skip to content

Commit

Permalink
feat: added task switcher queue flag all api (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
giangndm authored Apr 2, 2024
1 parent f41f53a commit c2d0c78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/task/switcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ impl TaskQueue {
Some(res)
}

#[allow(dead_code)]
pub fn flag_all(&mut self) {
self.bits.set_all(true);
}
Expand Down Expand Up @@ -150,6 +149,10 @@ impl TaskSwitcher {
self.queue.flag_task(index);
}

pub fn queue_flag_all(&mut self) {
self.queue.flag_all();
}

pub fn looper_current(&mut self, now: Instant) -> Option<usize> {
self.looper.current(now)
}
Expand Down

0 comments on commit c2d0c78

Please sign in to comment.