This commit is contained in:
aozhiwei 2023-10-07 19:23:41 +08:00
parent 1a2c64931e
commit ab32db98cf

View File

@ -1,9 +1,14 @@
use std::rc::{Rc, Weak};
use std::cell::RefCell;
pub struct TimerList {
}
pub struct Timer {
free_timer_num: i32,
free_timer_list: Rc::<RefCell::<crate::ListHead<TimerList>>>,
running_timer: Weak::<RefCell::<TimerList>>,
}
impl Timer {