This commit is contained in:
azw 2024-05-12 13:46:55 +08:00
parent c3280f8747
commit df628ccb8f
2 changed files with 0 additions and 6 deletions

View File

@ -13,9 +13,6 @@ pub struct ListHead<T> {
_self_wp: Weak::<RefCell::<Self>>,
}
unsafe impl<T> Send for ListHead<T> {}
unsafe impl<T> Sync for ListHead<T> {}
impl<T> ListHead<T> {
fn new(data: Weak::<RefCell::<T>>) -> Rc::<RefCell::<Self>> {

View File

@ -14,9 +14,6 @@ pub struct Queue<T> {
pub work_list: Mutex<Rc::<RefCell::<crate::ListHead<T>>>>,
}
unsafe impl<T> Send for Queue<T> {}
unsafe impl<T> Sync for Queue<T> {}
impl<T> Queue<T> {
pub fn new() -> Rc::<RefCell::<Self>> {