@@ -30,10 +30,10 @@ impl Condvar {
30
30
Condvar { inner : UnsafeCell :: new ( libc:: PTHREAD_COND_INITIALIZER ) }
31
31
}
32
32
33
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
33
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "android" ) ) ]
34
34
pub unsafe fn init ( & mut self ) { }
35
35
36
- #[ cfg( not( any( target_os = "macos" , target_os = "ios" ) ) ) ]
36
+ #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "android" ) ) ) ]
37
37
pub unsafe fn init ( & mut self ) {
38
38
use mem;
39
39
let mut attr: libc:: pthread_condattr_t = mem:: uninitialized ( ) ;
@@ -69,7 +69,7 @@ impl Condvar {
69
69
// where we configure condition variable to use monotonic clock (instead of
70
70
// default system clock). This approach avoids all problems that result
71
71
// from changes made to the system time.
72
- #[ cfg( not( any( target_os = "macos" , target_os = "ios" ) ) ) ]
72
+ #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "android" ) ) ) ]
73
73
pub unsafe fn wait_timeout ( & self , mutex : & Mutex , dur : Duration ) -> bool {
74
74
use mem;
75
75
@@ -99,7 +99,7 @@ impl Condvar {
99
99
// This implementation is modeled after libcxx's condition_variable
100
100
// https://github.com/llvm-mirror/libcxx/blob/release_35/src/condition_variable.cpp#L46
101
101
// https://github.com/llvm-mirror/libcxx/blob/release_35/include/__mutex_base#L367
102
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
102
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "android" ) ) ]
103
103
pub unsafe fn wait_timeout ( & self , mutex : & Mutex , dur : Duration ) -> bool {
104
104
use ptr;
105
105
use time:: Instant ;
0 commit comments