diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-06-03 16:45:47 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-06-03 16:45:47 +0200 |
| commit | ac5aa1ded529cd8317b351ba952ff9cd78b1e172 (patch) | |
| tree | 209ea71e0de957f31459e3a1d97c0ef2f074d1bb /library/std/src/sys/sgx | |
| parent | fb1976011e3df96b5d3eccd6b2f4e51ef7dc8f16 (diff) | |
| download | rust-ac5aa1ded529cd8317b351ba952ff9cd78b1e172.tar.gz rust-ac5aa1ded529cd8317b351ba952ff9cd78b1e172.zip | |
Use Drop instead of destroy() for locks.
Diffstat (limited to 'library/std/src/sys/sgx')
| -rw-r--r-- | library/std/src/sys/sgx/condvar.rs | 3 | ||||
| -rw-r--r-- | library/std/src/sys/sgx/mutex.rs | 3 | ||||
| -rw-r--r-- | library/std/src/sys/sgx/rwlock.rs | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/library/std/src/sys/sgx/condvar.rs b/library/std/src/sys/sgx/condvar.rs index c9736880b08..74e45e9505f 100644 --- a/library/std/src/sys/sgx/condvar.rs +++ b/library/std/src/sys/sgx/condvar.rs @@ -38,7 +38,4 @@ impl Condvar { unsafe { mutex.lock() }; success } - - #[inline] - pub unsafe fn destroy(&self) {} } diff --git a/library/std/src/sys/sgx/mutex.rs b/library/std/src/sys/sgx/mutex.rs index 98a390c4c2b..83b84b925bf 100644 --- a/library/std/src/sys/sgx/mutex.rs +++ b/library/std/src/sys/sgx/mutex.rs @@ -52,7 +52,4 @@ impl Mutex { true } } - - #[inline] - pub unsafe fn destroy(&self) {} } diff --git a/library/std/src/sys/sgx/rwlock.rs b/library/std/src/sys/sgx/rwlock.rs index 47be4c006ec..a4e74c5da08 100644 --- a/library/std/src/sys/sgx/rwlock.rs +++ b/library/std/src/sys/sgx/rwlock.rs @@ -168,9 +168,6 @@ impl RwLock { unsafe { self.__read_unlock(rguard, wguard) }; } } - - #[inline] - pub unsafe fn destroy(&self) {} } // The following functions are needed by libunwind. These symbols are named |
