Impl Sync/Send for Rawlink

This commit is contained in:
Flavio Percoco 2014-12-23 21:42:54 +01:00
parent d35ebcb483
commit 84a6684c65

View File

@ -43,6 +43,8 @@ struct Rawlink<T> {
}
impl<T> Copy for Rawlink<T> {}
unsafe impl<T:'static+Send> Send for Rawlink<T> {}
unsafe impl<T:Send+Sync> Sync for Rawlink<T> {}
struct Node<T> {
next: Link<T>,