File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
use std:: { borrow:: Cow , slice} ;
2
2
3
- use parking_lot:: { lock_api :: RawMutex , Mutex } ;
3
+ use parking_lot:: Mutex ;
4
4
use windows:: Win32 :: { Foundation , System :: Diagnostics :: Debug } ;
5
5
6
6
// 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};
9
9
//
10
10
// By routing all the registration through these functions we can guarantee
11
11
// 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 ) ;
13
13
14
14
pub fn register_exception_handler ( ) {
15
15
let mut count_guard = EXCEPTION_HANDLER_COUNT . lock ( ) ;
You can’t perform that action at this time.
0 commit comments