diff options
| author | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2016-09-24 23:38:56 -0500 |
|---|---|---|
| committer | Alexander von Gluck IV <kallisti5@unixzen.com> | 2016-09-25 11:12:23 -0500 |
| commit | 1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50 (patch) | |
| tree | 0e05d41032bc801ce69ce359645da9a437260469 /src/libstd/sys/unix/thread.rs | |
| parent | 2d1d4d199471dbdf0828acbc06cfe452463569af (diff) | |
| download | rust-1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50.tar.gz rust-1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50.zip | |
Add support for the Haiku operating system on x86 and x86_64 machines
* Hand rebased from Niels original work on 1.9.0
Diffstat (limited to 'src/libstd/sys/unix/thread.rs')
| -rw-r--r-- | src/libstd/sys/unix/thread.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs index 5db7086e427..98a4168d4fd 100644 --- a/src/libstd/sys/unix/thread.rs +++ b/src/libstd/sys/unix/thread.rs @@ -120,6 +120,11 @@ impl Thread { // 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. + } + pub fn sleep(dur: Duration) { let mut secs = dur.as_secs(); let mut nsecs = dur.subsec_nanos() as libc::c_long; |
