Skip to content

Commit 111a6a8

Browse files
authored
Small Fix to Mutex Init (#6846)
1 parent 15a77b5 commit 111a6a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgpu-hal/src/auxil/dxgi/exception.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{borrow::Cow, slice};
22

3-
use parking_lot::{lock_api::RawMutex, Mutex};
3+
use parking_lot::Mutex;
44
use windows::Win32::{Foundation, System::Diagnostics::Debug};
55

66
// This is a mutex as opposed to an atomic as we need to completely
@@ -9,7 +9,7 @@ use windows::Win32::{Foundation, System::Diagnostics::Debug};
99
//
1010
// By routing all the registration through these functions we can guarantee
1111
// there is either 1 or 0 exception handlers registered, not multiple.
12-
static EXCEPTION_HANDLER_COUNT: Mutex<usize> = Mutex::const_new(parking_lot::RawMutex::INIT, 0);
12+
static EXCEPTION_HANDLER_COUNT: Mutex<usize> = Mutex::new(0);
1313

1414
pub fn register_exception_handler() {
1515
let mut count_guard = EXCEPTION_HANDLER_COUNT.lock();

0 commit comments

Comments
 (0)