新增了rust实现的信号量 (#183)

* 新增了rust实现的信号量
This commit is contained in:
Gou Ngai
2023-03-04 16:54:42 +08:00
committed by GitHub
parent e532a536a0
commit 83b9512c1c
4 changed files with 63 additions and 3 deletions

View File

@ -1,6 +1,6 @@
use core::{ptr::null_mut, sync::atomic::compiler_fence};
use alloc::{boxed::Box, vec::Vec, collections::LinkedList};
use alloc::{boxed::Box, collections::LinkedList, vec::Vec};
use crate::{
arch::asm::current::current_pcb,
@ -86,7 +86,6 @@ impl RTQueue {
self.queue.push_front(pcb);
self.lock.unlock();
}
}
/// @brief RT调度器类