Don't put hermit mutexes in a box.
Hermit mutexes are movable.
This commit is contained in:
parent
f45ebe459f
commit
fffa88eb27
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ pub struct Mutex {
|
||||||
inner: Spinlock<MutexInner>,
|
inner: Spinlock<MutexInner>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type MovableMutex = Box<Mutex>;
|
pub type MovableMutex = Mutex;
|
||||||
|
|
||||||
unsafe impl Send for Mutex {}
|
unsafe impl Send for Mutex {}
|
||||||
unsafe impl Sync for Mutex {}
|
unsafe impl Sync for Mutex {}
|
||||||
|
|
Loading…
Reference in a new issue