diff options
| author | Thom Chiovoloni <thom@shift.click> | 2022-10-11 17:22:12 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <thom@shift.click> | 2023-06-21 14:59:37 -0700 |
| commit | bdc3db944cf8da99d80e67e7bb52917512d0a5a7 (patch) | |
| tree | 4bf332994538c0a5854994dbacd2f578e90cc73d /library/std/src/sys/unix/thread.rs | |
| parent | 006a26c0b546abc0fbef59a773639582b641e500 (diff) | |
| download | rust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.tar.gz rust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.zip | |
wip: Support Apple tvOS in libstd
Diffstat (limited to 'library/std/src/sys/unix/thread.rs')
| -rw-r--r-- | library/std/src/sys/unix/thread.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread.rs b/library/std/src/sys/unix/thread.rs index 010015667f7..916390f3a66 100644 --- a/library/std/src/sys/unix/thread.rs +++ b/library/std/src/sys/unix/thread.rs @@ -150,7 +150,7 @@ impl Thread { } } - #[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))] + #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))] pub fn set_name(name: &CStr) { unsafe { let name = truncate_cstr::<{ libc::MAXTHREADNAMESIZE }>(name); @@ -299,6 +299,7 @@ pub fn available_parallelism() -> io::Result<NonZeroUsize> { target_os = "emscripten", target_os = "fuchsia", target_os = "ios", + target_os = "tvos", target_os = "linux", target_os = "macos", target_os = "solaris", |
