1
Fork 0

Don't put hermit rwlocks in a box.

Hermit rwlocks are movable.
This commit is contained in:
Martin Kröning 2021-06-18 13:52:13 +02:00 committed by Stefan Lankes
parent 13d6c5c90c
commit fe56e8961f

View file

@ -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,