File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ categories = ["concurrency"]
1313readme = " README.md"
1414
1515[dependencies ]
16- cache-padded = " 1.0.0 "
16+ cache-padded = " 1.1.1 "
1717
1818[dev-dependencies ]
19- easy-parallel = " 2 .1.0"
20- fastrand = " 1.0.0 "
19+ easy-parallel = " 3 .1.0"
20+ fastrand = " 1.3.3 "
Original file line number Diff line number Diff line change 3232
3333use std:: error;
3434use std:: fmt;
35+ use std:: panic:: { RefUnwindSafe , UnwindSafe } ;
3536use std:: sync:: atomic:: { self , AtomicUsize , Ordering } ;
3637
3738use crate :: bounded:: Bounded ;
@@ -62,6 +63,9 @@ pub struct ConcurrentQueue<T>(Inner<T>);
6263unsafe impl < T : Send > Send for ConcurrentQueue < T > { }
6364unsafe impl < T : Send > Sync for ConcurrentQueue < T > { }
6465
66+ impl < T > UnwindSafe for ConcurrentQueue < T > { }
67+ impl < T > RefUnwindSafe for ConcurrentQueue < T > { }
68+
6569enum Inner < T > {
6670 Bounded ( Bounded < T > ) ,
6771 Unbounded ( Unbounded < T > ) ,
You can’t perform that action at this time.
0 commit comments