Skip to content

Commit

Permalink
Haiku: Use common thread set_name stub
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Sep 26, 2016
1 parent 7e91b86 commit 7c34d9c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/libstd/sys/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7c34d9c

Please sign in to comment.