Add syscall alarm

This commit is contained in:
Jianfeng Jiang
2023-12-12 07:00:40 +00:00
committed by Tate, Hongliang Tian
parent 286a3514b3
commit 3f402d2d88
8 changed files with 199 additions and 23 deletions

View File

@ -58,7 +58,7 @@ impl Timer {
///
/// If a timeout value is already set, the timeout value will be refreshed.
///
pub fn set(self: Arc<Self>, timeout: Duration) {
pub fn set(self: &Arc<Self>, timeout: Duration) {
let mut lock = self.inner.lock_irq_disabled();
match &lock.timer_callback {
Some(callback) => {