about summary refs log tree commit diff
path: root/src/libstd/sys/windows/mutex.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-11-28 12:49:11 +0100
committerRalf Jung <post@ralfj.de>2018-11-28 12:49:11 +0100
commitdd593d3ab85826436dec593ce6ac06932291fd0e (patch)
tree208e7801941b3829c25fe1c969ca2c805236708d /src/libstd/sys/windows/mutex.rs
parent965fdb029460346553cd9ddc59f5bb3b93e2f508 (diff)
downloadrust-dd593d3ab85826436dec593ce6ac06932291fd0e.tar.gz
rust-dd593d3ab85826436dec593ce6ac06932291fd0e.zip
get_ref -> get_mut
Diffstat (limited to 'src/libstd/sys/windows/mutex.rs')
-rw-r--r--src/libstd/sys/windows/mutex.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/sys/windows/mutex.rs b/src/libstd/sys/windows/mutex.rs
index e54bbfca056..c2107c28e03 100644
--- a/src/libstd/sys/windows/mutex.rs
+++ b/src/libstd/sys/windows/mutex.rs
@@ -173,26 +173,26 @@ impl ReentrantMutex {
 
     pub unsafe fn lock(&self) {
         // `init` must have been called, so this is now initialized and
-        // we can call `get_ref`.
-        c::EnterCriticalSection((&mut *self.inner.get()).get_ref());
+        // we can call `get_mut`.
+        c::EnterCriticalSection((&mut *self.inner.get()).get_mut());
     }
 
     #[inline]
     pub unsafe fn try_lock(&self) -> bool {
         // `init` must have been called, so this is now initialized and
-        // we can call `get_ref`.
-        c::TryEnterCriticalSection((&mut *self.inner.get()).get_ref()) != 0
+        // we can call `get_mut`.
+        c::TryEnterCriticalSection((&mut *self.inner.get()).get_mut()) != 0
     }
 
     pub unsafe fn unlock(&self) {
         // `init` must have been called, so this is now initialized and
-        // we can call `get_ref`.
-        c::LeaveCriticalSection((&mut *self.inner.get()).get_ref());
+        // we can call `get_mut`.
+        c::LeaveCriticalSection((&mut *self.inner.get()).get_mut());
     }
 
     pub unsafe fn destroy(&self) {
         // `init` must have been called, so this is now initialized and
-        // we can call `get_ref`.
-        c::DeleteCriticalSection((&mut *self.inner.get()).get_ref());
+        // we can call `get_mut`.
+        c::DeleteCriticalSection((&mut *self.inner.get()).get_mut());
     }
 }