No longer put cloudabi mutexes in a box.
Cloudabi mutexes may be moved safely.
This commit is contained in:
parent
58deb7001d
commit
def5188ca8
|
@ -15,7 +15,7 @@ extern "C" {
|
||||||
// implemented identically.
|
// implemented identically.
|
||||||
pub struct Mutex(RWLock);
|
pub struct Mutex(RWLock);
|
||||||
|
|
||||||
pub type MovableMutex = Box<Mutex>;
|
pub type MovableMutex = Mutex;
|
||||||
|
|
||||||
pub unsafe fn raw(m: &Mutex) -> *mut AtomicU32 {
|
pub unsafe fn raw(m: &Mutex) -> *mut AtomicU32 {
|
||||||
rwlock::raw(&m.0)
|
rwlock::raw(&m.0)
|
||||||
|
|
Loading…
Reference in New Issue