mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Add condition variable implementation
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c04fd0c9a0
commit
34e9d71fe4
@ -288,4 +288,10 @@ pub fn init_for_ktest() {
|
||||
let clock = RealTimeClock { _private: () };
|
||||
TimerManager::new(Arc::new(clock))
|
||||
});
|
||||
CLOCK_REALTIME_COARSE_INSTANCE.call_once(|| Arc::new(RealTimeCoarseClock { _private: () }));
|
||||
RealTimeCoarseClock::current_ref().call_once(|| SpinLock::new(Duration::from_secs(0)));
|
||||
JIFFIES_TIMER_MANAGER.call_once(|| {
|
||||
let clock = JiffiesClock { _private: () };
|
||||
TimerManager::new(Arc::new(clock))
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user