Home
last modified time | relevance | path

Searched refs:Timer (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.7/docs/kernel/sched/
Dkernel_timer.md9Timer`结构体,而`Timer`由`SpinLock<InnerTimer>`组成。全局中使用元素类型为`Arc<Timer>`的队列`TIMER_LIST`存储系统创建的定时器。创建定时器时…
28 ### 4.1. Timer的API
165 let timer: Arc<Timer> = Timer::new(timer_example, 1);
/DragonOS-0.1.7/kernel/src/time/
Dtimer.rs27 pub static ref TIMER_LIST: SpinLock<LinkedList<Arc<Timer>>> = SpinLock::new(LinkedList::new());
54 pub struct Timer(SpinLock<InnerTimer>); struct
56 impl Timer { implementation
65 let result: Arc<Timer> = Arc::new(Timer(SpinLock::new(InnerTimer { in new()
100 let mut temp_list: LinkedList<Arc<Timer>> = timer_list.split_off(split_pos); in activate()
120 self_ref: Weak<Timer>,
234 let timer = Timer::new(WakeUpHelper::new(current_pcb()), timeout as u64); in schedule_timeout()
Dsleep.rs16 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper},
46 let timer: Arc<Timer> = Timer::new( in nano_sleep()
/DragonOS-0.1.7/kernel/src/net/
Dnet_core.rs10 time::timer::{next_n_ms_timer_jiffies, Timer, TimerFunction},
23 let timer = Timer::new(Box::new(NetWorkPollFunc()), next_time); in run()
32 let timer = Timer::new(Box::new(NetWorkPollFunc()), next_time); in net_init()