Haiku: Use common thread set_name stub
This commit is contained in:
parent
7e91b86707
commit
7c34d9c144
1 changed files with 5 additions and 7 deletions
|
@ -115,14 +115,12 @@ impl Thread {
|
||||||
name.as_ptr() as *mut libc::c_void);
|
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) {
|
pub fn set_name(_name: &CStr) {
|
||||||
// Newlib, Illumos and Emscripten have no way to set a thread name.
|
// Newlib, Illumos, Haiku, 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.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sleep(dur: Duration) {
|
pub fn sleep(dur: Duration) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue