File tree 2 files changed +16
-0
lines changed
library/std/src/sys/windows 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1096,3 +1096,18 @@ compat_fn! {
1096
1096
panic!( "rwlocks not available" )
1097
1097
}
1098
1098
}
1099
+ compat_fn ! {
1100
+ "api-ms-win-core-synch-l1-2-0" :
1101
+ pub fn WaitOnAddress (
1102
+ Address : LPVOID ,
1103
+ CompareAddress : LPVOID ,
1104
+ AddressSize : SIZE_T ,
1105
+ dwMilliseconds: DWORD
1106
+ ) -> BOOL {
1107
+ panic!( "WaitOnAddress not available" )
1108
+ }
1109
+ pub fn WakeByAddressSingle ( Address : LPVOID ) -> ( ) {
1110
+ // If this api is unavailable, there cannot be anything waiting, because
1111
+ // WaitOnAddress would've panicked. So it's fine to do nothing here.
1112
+ }
1113
+ }
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ macro_rules! compat_fn {
34
34
) * ) => ( $(
35
35
$( #[ $meta] ) *
36
36
pub mod $symbol {
37
+ #[ allow( unused_imports) ]
37
38
use super :: * ;
38
39
use crate :: sync:: atomic:: { AtomicUsize , Ordering } ;
39
40
use crate :: mem;
You can’t perform that action at this time.
0 commit comments