diff options
| author | joboet <jonasboettiger@icloud.com> | 2022-09-05 18:04:48 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2022-09-11 12:08:13 +0200 |
| commit | ce051df3d1b9ee41cc8ae447158b648de3dfe356 (patch) | |
| tree | b3fda5df0aaf308e9e04221223b321ae492b30ce /library/std/src/sys | |
| parent | 4c3f8eb277dcfd7f8624a9deb00fc4f74e5b6bf1 (diff) | |
| download | rust-ce051df3d1b9ee41cc8ae447158b648de3dfe356.tar.gz rust-ce051df3d1b9ee41cc8ae447158b648de3dfe356.zip | |
std: use correct clock in `park_timeout` on Horizon
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/thread_parker/pthread.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/thread_parker/pthread.rs b/library/std/src/sys/unix/thread_parker/pthread.rs index 3dfc0026ed1..4cdc11bc5d5 100644 --- a/library/std/src/sys/unix/thread_parker/pthread.rs +++ b/library/std/src/sys/unix/thread_parker/pthread.rs @@ -46,7 +46,8 @@ unsafe fn wait_timeout( target_os = "macos", target_os = "ios", target_os = "watchos", - target_os = "espidf" + target_os = "espidf", + target_os = "horizon", ))] let (now, dur) = { use crate::cmp::min; @@ -72,7 +73,8 @@ unsafe fn wait_timeout( target_os = "macos", target_os = "ios", target_os = "watchos", - target_os = "espidf" + target_os = "espidf", + target_os = "horizon", )))] let (now, dur) = { use crate::sys::time::Timespec; |
