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/unix/locks/futex.rs | |
| 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/unix/locks/futex.rs')
| -rw-r--r-- | library/std/src/sys/unix/locks/futex.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/library/std/src/sys/unix/locks/futex.rs b/library/std/src/sys/unix/locks/futex.rs index 7a63af1ad7c..5731ce44286 100644 --- a/library/std/src/sys/unix/locks/futex.rs +++ b/library/std/src/sys/unix/locks/futex.rs @@ -25,9 +25,6 @@ impl Mutex { pub unsafe fn init(&mut self) {} #[inline] - pub unsafe fn destroy(&self) {} - - #[inline] pub unsafe fn try_lock(&self) -> bool { self.futex.compare_exchange(0, 1, Acquire, Relaxed).is_ok() } @@ -121,9 +118,6 @@ impl Condvar { #[inline] pub unsafe fn init(&mut self) {} - #[inline] - pub unsafe fn destroy(&self) {} - // All the memory orderings here are `Relaxed`, // because synchronization is done by unlocking and locking the mutex. |
