Don't put hermit rwlocks in a box.
Hermit rwlocks are movable.
This commit is contained in:
committed by
Stefan Lankes
parent
13d6c5c90c
commit
fe56e8961f
@@ -8,7 +8,7 @@ pub struct RWLock {
|
|||||||
state: UnsafeCell<State>,
|
state: UnsafeCell<State>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type MovableRWLock = Box<RWLock>;
|
pub type MovableRWLock = RWLock;
|
||||||
|
|
||||||
enum State {
|
enum State {
|
||||||
Unlocked,
|
Unlocked,
|
||||||
|
|||||||
Reference in New Issue
Block a user