about summary refs log tree commit diff
path: root/src/libstd/sys/unix/thread.rs
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2016-09-26 00:41:24 -0500
committerAlexander von Gluck IV <kallisti5@unixzen.com>2016-09-26 00:41:41 -0500
commit7c34d9c14492b54eba84b474087980e675eed521 (patch)
tree0b359f24352aafc87439676025153f4847c0bf94 /src/libstd/sys/unix/thread.rs
parent7e91b8670776215d7a718004214dd2ec72b716ac (diff)
downloadrust-7c34d9c14492b54eba84b474087980e675eed521.tar.gz
rust-7c34d9c14492b54eba84b474087980e675eed521.zip
Haiku: Use common thread set_name stub
Diffstat (limited to 'src/libstd/sys/unix/thread.rs')
-rw-r--r--src/libstd/sys/unix/thread.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
index 98a4168d4fd..980ef01f549 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -115,14 +115,12 @@ impl Thread {
                                      name.as_ptr() as *mut libc::c_void);
         }
     }
-    #[cfg(any(target_env = "newlib", target_os = "solaris", target_os = "emscripten"))]
+    #[cfg(any(target_env = "newlib",
+              target_os = "solaris",
+              target_os = "haiku",
+              target_os = "emscripten"))]
     pub fn set_name(_name: &CStr) {
-        // Newlib, Illumos and Emscripten have no way to set a thread name.
-    }
-
-    #[cfg(target_os = "haiku")]
-    pub fn set_name(_name: &CStr) {
-        // Haiku has no way to set a thread name.
+        // Newlib, Illumos, Haiku, and Emscripten have no way to set a thread name.
     }
 
     pub fn sleep(dur: Duration) {