mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
Add syscall alarm
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
286a3514b3
commit
3f402d2d88
@ -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) => {
|
||||
|
Reference in New Issue
Block a user