box mutex to get a movable mutex
the commit avoid an alignement issue in Mutex implementation
This commit is contained in:
parent
77d98316f4
commit
bf268fe928
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ pub struct Mutex {
|
|||
inner: Spinlock<MutexInner>,
|
||||
}
|
||||
|
||||
pub type MovableMutex = Mutex;
|
||||
pub type MovableMutex = Box<Mutex>;
|
||||
|
||||
unsafe impl Send for Mutex {}
|
||||
unsafe impl Sync for Mutex {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue