about summary refs log tree commit diff
path: root/library/std/src/sys/windows
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-06-06 13:45:02 +0200
committerMara Bos <m-ou.se@m-ou.se>2022-06-06 13:49:23 +0200
commitacc3ab4e65cfe4c11156ba7b6be0a33625e7626b (patch)
treed55cec960939558db3ffc42cbde223bd74af38cb /library/std/src/sys/windows
parente70c60d34b9783a2fd3171d88d248c2e0ec8ecdd (diff)
downloadrust-acc3ab4e65cfe4c11156ba7b6be0a33625e7626b.tar.gz
rust-acc3ab4e65cfe4c11156ba7b6be0a33625e7626b.zip
Make all {Mutex, Condvar, RwLock}::new #[inline].
Diffstat (limited to 'library/std/src/sys/windows')
-rw-r--r--library/std/src/sys/windows/locks/condvar.rs1
-rw-r--r--library/std/src/sys/windows/locks/mutex.rs1
-rw-r--r--library/std/src/sys/windows/locks/rwlock.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/sys/windows/locks/condvar.rs b/library/std/src/sys/windows/locks/condvar.rs
index 59e2c1be0f0..be9a2abbe35 100644
--- a/library/std/src/sys/windows/locks/condvar.rs
+++ b/library/std/src/sys/windows/locks/condvar.rs
@@ -14,6 +14,7 @@ unsafe impl Send for Condvar {}
 unsafe impl Sync for Condvar {}
 
 impl Condvar {
+    #[inline]
     pub const fn new() -> Condvar {
         Condvar { inner: UnsafeCell::new(c::CONDITION_VARIABLE_INIT) }
     }
diff --git a/library/std/src/sys/windows/locks/mutex.rs b/library/std/src/sys/windows/locks/mutex.rs
index 08f55844a0e..f91e8f9f59a 100644
--- a/library/std/src/sys/windows/locks/mutex.rs
+++ b/library/std/src/sys/windows/locks/mutex.rs
@@ -33,6 +33,7 @@ pub unsafe fn raw(m: &Mutex) -> c::PSRWLOCK {
 }
 
 impl Mutex {
+    #[inline]
     pub const fn new() -> Mutex {
         Mutex { srwlock: UnsafeCell::new(c::SRWLOCK_INIT) }
     }
diff --git a/library/std/src/sys/windows/locks/rwlock.rs b/library/std/src/sys/windows/locks/rwlock.rs
index a32df85e2f6..fa5ffe5749f 100644
--- a/library/std/src/sys/windows/locks/rwlock.rs
+++ b/library/std/src/sys/windows/locks/rwlock.rs
@@ -11,6 +11,7 @@ unsafe impl Send for RwLock {}
 unsafe impl Sync for RwLock {}
 
 impl RwLock {
+    #[inline]
     pub const fn new() -> RwLock {
         RwLock { inner: UnsafeCell::new(c::SRWLOCK_INIT) }
     }