1
Fork 0

Rollup merge of #85029 - jethrogb:jb/sgx-movable-mutex, r=m-ou-se

SGX mutex is movable

r? ``@m-ou-se``
This commit is contained in:
Dylan DPC 2021-05-07 16:19:23 +02:00 committed by GitHub
commit 73d3544fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ pub struct Mutex {
inner: SpinMutex<WaitVariable<bool>>, inner: SpinMutex<WaitVariable<bool>>,
} }
pub type MovableMutex = Box<Mutex>; pub type MovableMutex = Mutex;
// Implementation according to “Operating Systems: Three Easy Pieces”, chapter 28 // Implementation according to “Operating Systems: Three Easy Pieces”, chapter 28
impl Mutex { impl Mutex {