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()75 timer_func, in new()117 let r = self.0.lock().timer_func.run(); in run()133 pub timer_func: Box<dyn TimerFunction>, field