File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
branches/auto/src/libstd/sys Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: ec4981ece86769c768d61a914093a7a39192522c
13
+ refs/heads/auto: c155208de42de5761231726e35614b4499b5a137
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -223,9 +223,9 @@ pub unsafe fn set_name(name: &str) {
223
223
pthread_set_name_np ( pthread_self ( ) , cname. as_ptr ( ) ) ;
224
224
}
225
225
226
- #[ cfg( target_os = "macos" ) ]
226
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
227
227
pub unsafe fn set_name ( name : & str ) {
228
- // pthread_setname_np() since OS X 10.6
228
+ // pthread_setname_np() since OS X 10.6 and iOS 3.2
229
229
let cname = CString :: from_slice ( name. as_bytes ( ) ) ;
230
230
pthread_setname_np ( cname. as_ptr ( ) ) ;
231
231
}
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ pub unsafe fn create(stack: uint, p: Thunk) -> rust_thread {
67
67
return ret;
68
68
}
69
69
70
- pub unsafe fn set_name ( name : & str ) {
70
+ pub unsafe fn set_name ( _name : & str ) {
71
71
// Windows threads are nameless
72
72
// The names in MSVC debugger are obtained using a "magic" exception,
73
- // which requires a use of C++ macros .
73
+ // which requires a use of MS C++ extensions .
74
74
// See https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
75
75
}
76
76
You can’t perform that action at this time.
0 commit comments