Searched refs:preempt_count (Results 1 – 10 of 10) sorted by relevance
16 return ProcessManager::current_pcb().preempt_count(); in current_pcb_preempt_count()
37 return ProcessManager::current_pcb().preempt_count() as u32; in rs_current_pcb_preempt_count()
614 preempt_count: AtomicUsize, field708 let preempt_count = AtomicUsize::new(0); in do_create_pcb() localVariable722 preempt_count, in do_create_pcb()789 pub fn preempt_count(&self) -> usize { in preempt_count() method790 return self.preempt_count.load(Ordering::SeqCst); in preempt_count()796 self.preempt_count.fetch_add(1, Ordering::SeqCst); in preempt_disable()802 self.preempt_count.fetch_sub(1, Ordering::SeqCst); in preempt_enable()807 self.preempt_count.store(count, Ordering::SeqCst); in set_preempt_count()
218 let prev_count: usize = ProcessManager::current_pcb().preempt_count(); in do_softirq()221 if unlikely(prev_count != ProcessManager::current_pcb().preempt_count()) { in do_softirq()226 ProcessManager::current_pcb().preempt_count() in do_softirq()
48 …- ``schedule``: ``__schedule``的上层封装,它需要该任务在内核中的所有资源释放干净才能进行调度,即判断当前进程的``preempt_count``是否为0,若不为0则会…
51 - textui: 修复由于textui加锁,更改了preempt_count导致“进程长时间连续输出字符”的情况下,进程调度器不运行的问题。 (#203)299 修复由于textui加锁,更改了preempt_count导致“进程长时间连续输出字符”的情况下,进程调度器不运行的问题。 (#203)
296 if unlikely(pcb.preempt_count() > max_preempt) { in before_sleep_check()300 pcb.preempt_count() in before_sleep_check()
268 assert_eq!(ProcessManager::current_pcb().preempt_count(), 0); in do_cpuhp_kick_ap()
823 assert_eq!(ProcessManager::current_pcb().preempt_count(), 0); in schedule()
206 &mut format!("\npreempt:\t{}", pcb.preempt_count()) in open_status()