We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e91b86 commit 7c34d9cCopy full SHA for 7c34d9c
src/libstd/sys/unix/thread.rs
@@ -115,14 +115,12 @@ impl Thread {
115
name.as_ptr() as *mut libc::c_void);
116
}
117
118
- #[cfg(any(target_env = "newlib", target_os = "solaris", target_os = "emscripten"))]
+ #[cfg(any(target_env = "newlib",
119
+ target_os = "solaris",
120
+ target_os = "haiku",
121
+ target_os = "emscripten"))]
122
pub fn set_name(_name: &CStr) {
- // Newlib, Illumos and Emscripten have no way to set a thread name.
- }
-
123
- #[cfg(target_os = "haiku")]
124
- pub fn set_name(_name: &CStr) {
125
- // Haiku has no way to set a thread name.
+ // Newlib, Illumos, Haiku, and Emscripten have no way to set a thread name.
126
127
128
pub fn sleep(dur: Duration) {
0 commit comments