File tree Expand file tree Collapse file tree 8 files changed +10
-8
lines changed Expand file tree Collapse file tree 8 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ cfg_if::cfg_if! {
14
14
} else if #[ cfg( target_family = "unix" ) ] {
15
15
mod pthread;
16
16
pub use pthread:: Condvar ;
17
+ } else if #[ cfg( target_os = "windows" ) ] {
18
+ mod windows;
19
+ pub use windows:: Condvar ;
17
20
} else if #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
18
21
mod sgx;
19
22
pub use sgx:: Condvar ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl Condvar {
27
27
let r = c:: SleepConditionVariableSRW (
28
28
self . inner . get ( ) ,
29
29
mutex:: raw ( mutex) ,
30
- crate :: sys:: pal:: windows :: dur2timeout ( dur) ,
30
+ crate :: sys:: pal:: dur2timeout ( dur) ,
31
31
0 ,
32
32
) ;
33
33
if r == 0 {
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ cfg_if::cfg_if! {
19
19
) ) ] {
20
20
mod pthread;
21
21
pub use pthread:: { Mutex , raw} ;
22
+ } else if #[ cfg( target_os = "windows" ) ] {
23
+ mod windows;
24
+ pub use windows:: { Mutex , raw} ;
22
25
} else if #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
23
26
mod sgx;
24
27
pub use sgx:: Mutex ;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ cfg_if::cfg_if! {
14
14
} else if #[ cfg( target_family = "unix" ) ] {
15
15
mod queue;
16
16
pub use queue:: RwLock ;
17
+ } else if #[ cfg( target_os = "windows" ) ] {
18
+ mod windows;
19
+ pub use windows:: RwLock ;
17
20
} else if #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
18
21
mod sgx;
19
22
pub use sgx:: RwLock ;
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ pub mod env;
19
19
pub mod fs;
20
20
pub mod handle;
21
21
pub mod io;
22
- pub mod locks;
23
22
pub mod memchr;
24
23
pub mod net;
25
24
pub mod os;
You can’t perform that action at this time.
0 commit comments