File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
branches/try2/src/libstd/rt Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 8211539114df8b6e3a9b8b251fa57cb5a77d2f14
8
+ refs/heads/try2: e043644cea119ea701a293a01b6d4c5c0f13f450
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -273,13 +273,8 @@ mod imp {
273
273
assert_eq ! ( pthread_detach( native) , 0 ) ;
274
274
}
275
275
276
- #[ cfg( target_os = "macos" ) ]
277
- #[ cfg( target_os = "android" ) ]
278
276
pub unsafe fn yield_now ( ) { assert_eq ! ( sched_yield( ) , 0 ) ; }
279
277
280
- #[ cfg( not( target_os = "macos" ) , not( target_os = "android" ) ) ]
281
- pub unsafe fn yield_now ( ) { assert_eq ! ( pthread_yield( ) , 0 ) ; }
282
-
283
278
// glibc >= 2.15 has a __pthread_get_minstack() function that returns
284
279
// PTHREAD_STACK_MIN plus however many bytes are needed for thread-local
285
280
// storage. We need that information to avoid blowing up when a small stack
@@ -326,12 +321,7 @@ mod imp {
326
321
fn pthread_attr_setdetachstate ( attr : * mut libc:: pthread_attr_t ,
327
322
state : libc:: c_int ) -> libc:: c_int ;
328
323
fn pthread_detach ( thread : libc:: pthread_t ) -> libc:: c_int ;
329
-
330
- #[ cfg( target_os = "macos" ) ]
331
- #[ cfg( target_os = "android" ) ]
332
324
fn sched_yield ( ) -> libc:: c_int ;
333
- #[ cfg( not( target_os = "macos" ) , not( target_os = "android" ) ) ]
334
- fn pthread_yield ( ) -> libc:: c_int ;
335
325
}
336
326
}
337
327
You can’t perform that action at this time.
0 commit comments