diff options
| author | bors <bors@rust-lang.org> | 2014-05-15 15:56:54 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-15 15:56:54 -0700 |
| commit | 0481d628b826104085c5df267cf6089a89fcd17b (patch) | |
| tree | 5d488af95a17f26977bb0384d701bd560dbdcde8 /src/libstd/rt/thread.rs | |
| parent | 182c96c9212a2b7e830fe5f9a6662e72f73775ec (diff) | |
| parent | 17df573a2e47d5815b5feb938626f9b6ec9ee4ee (diff) | |
| download | rust-0481d628b826104085c5df267cf6089a89fcd17b.tar.gz rust-0481d628b826104085c5df267cf6089a89fcd17b.zip | |
auto merge of #14234 : alexcrichton/rust/rollup, r=alexcrichton
Let's try this again!
Diffstat (limited to 'src/libstd/rt/thread.rs')
| -rw-r--r-- | src/libstd/rt/thread.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 4f0d7d35ce8..e25fa4734d5 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -273,13 +273,8 @@ mod imp { assert_eq!(pthread_detach(native), 0); } - #[cfg(target_os = "macos")] - #[cfg(target_os = "android")] pub unsafe fn yield_now() { assert_eq!(sched_yield(), 0); } - #[cfg(not(target_os = "macos"), not(target_os = "android"))] - pub unsafe fn yield_now() { assert_eq!(pthread_yield(), 0); } - // glibc >= 2.15 has a __pthread_get_minstack() function that returns // PTHREAD_STACK_MIN plus however many bytes are needed for thread-local // storage. We need that information to avoid blowing up when a small stack @@ -326,12 +321,7 @@ mod imp { fn pthread_attr_setdetachstate(attr: *mut libc::pthread_attr_t, state: libc::c_int) -> libc::c_int; fn pthread_detach(thread: libc::pthread_t) -> libc::c_int; - - #[cfg(target_os = "macos")] - #[cfg(target_os = "android")] fn sched_yield() -> libc::c_int; - #[cfg(not(target_os = "macos"), not(target_os = "android"))] - fn pthread_yield() -> libc::c_int; } } |
