diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-06-03 17:04:14 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-06-03 17:04:14 +0200 |
| commit | 6a417d482899e13b1fbef5f5f9962f59e89e9e53 (patch) | |
| tree | 6bf812e545a816dd9d361be00b6f9a3cfe200f36 /library/std/src/sys/windows | |
| parent | ac5aa1ded529cd8317b351ba952ff9cd78b1e172 (diff) | |
| download | rust-6a417d482899e13b1fbef5f5f9962f59e89e9e53.tar.gz rust-6a417d482899e13b1fbef5f5f9962f59e89e9e53.zip | |
Lazily allocate+initialize locks.
Diffstat (limited to 'library/std/src/sys/windows')
| -rw-r--r-- | library/std/src/sys/windows/locks/condvar.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/sys/windows/locks/condvar.rs b/library/std/src/sys/windows/locks/condvar.rs index 1cb0d241a07..59e2c1be0f0 100644 --- a/library/std/src/sys/windows/locks/condvar.rs +++ b/library/std/src/sys/windows/locks/condvar.rs @@ -19,9 +19,6 @@ impl Condvar { } #[inline] - pub unsafe fn init(&mut self) {} - - #[inline] pub unsafe fn wait(&self, mutex: &Mutex) { let r = c::SleepConditionVariableSRW(self.inner.get(), mutex::raw(mutex), c::INFINITE, 0); debug_assert!(r != 0); |
