diff --git a/r9/src/listhead.rs b/r9/src/listhead.rs index 9a21544..d877a96 100644 --- a/r9/src/listhead.rs +++ b/r9/src/listhead.rs @@ -13,6 +13,9 @@ pub struct ListHead { _self_wp: Weak::>, } +unsafe impl Send for ListHead {} +unsafe impl Sync for ListHead {} + impl ListHead { fn new(data: Weak::>) -> Rc::> { diff --git a/r9/src/queue.rs b/r9/src/queue.rs index 468103d..268e2e3 100644 --- a/r9/src/queue.rs +++ b/r9/src/queue.rs @@ -1,6 +1,7 @@ use std::rc::{Rc, Weak}; use std::cell::RefCell; use std::sync::Mutex; +//use futures::lock::Mutex; use std::sync::Arc; use std::thread; use std::thread::Thread;