Skip to content

Commit 4d7aa39

Browse files
thestingeralexcrichton
authored andcommitted
---
yaml --- r: 151711 b: refs/heads/try2 c: e043644 h: refs/heads/master i: 151709: 248334d 151707: 4b5a3a8 151703: d30d585 151695: eaf657e 151679: 48e32f9 v: v3
1 parent c1c244b commit 4d7aa39

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 8211539114df8b6e3a9b8b251fa57cb5a77d2f14
8+
refs/heads/try2: e043644cea119ea701a293a01b6d4c5c0f13f450
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/thread.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,8 @@ mod imp {
273273
assert_eq!(pthread_detach(native), 0);
274274
}
275275

276-
#[cfg(target_os = "macos")]
277-
#[cfg(target_os = "android")]
278276
pub unsafe fn yield_now() { assert_eq!(sched_yield(), 0); }
279277

280-
#[cfg(not(target_os = "macos"), not(target_os = "android"))]
281-
pub unsafe fn yield_now() { assert_eq!(pthread_yield(), 0); }
282-
283278
// glibc >= 2.15 has a __pthread_get_minstack() function that returns
284279
// PTHREAD_STACK_MIN plus however many bytes are needed for thread-local
285280
// storage. We need that information to avoid blowing up when a small stack
@@ -326,12 +321,7 @@ mod imp {
326321
fn pthread_attr_setdetachstate(attr: *mut libc::pthread_attr_t,
327322
state: libc::c_int) -> libc::c_int;
328323
fn pthread_detach(thread: libc::pthread_t) -> libc::c_int;
329-
330-
#[cfg(target_os = "macos")]
331-
#[cfg(target_os = "android")]
332324
fn sched_yield() -> libc::c_int;
333-
#[cfg(not(target_os = "macos"), not(target_os = "android"))]
334-
fn pthread_yield() -> libc::c_int;
335325
}
336326
}
337327

0 commit comments

Comments
 (0)