1
This commit is contained in:
parent
c950f6d288
commit
902db5e1bf
@ -13,6 +13,9 @@ 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>> {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user