Searched refs:timer_func (Results 1 – 2 of 2) sorted by relevance
9 …`存储系统创建的定时器。创建定时器时,应调用`Timer::new(timer_func,expire_jiffies)`,timer_func为定时器要执行的操作,expire_jiffies为…32 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self>37 - timer_func:定时器需要执行的函数对应的结构体,其实现了`TimerFunction`特性
72 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self> { in new()76 timer_func: Some(timer_func), in new()126 let func = timer.timer_func.take(); in run()159 pub timer_func: Option<Box<dyn TimerFunction>>, field