Skip to content

Commit ce051df

Browse files
committed
std: use correct clock in park_timeout on Horizon
1 parent 4c3f8eb commit ce051df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/std/src/sys/unix/thread_parker/pthread.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ unsafe fn wait_timeout(
4646
target_os = "macos",
4747
target_os = "ios",
4848
target_os = "watchos",
49-
target_os = "espidf"
49+
target_os = "espidf",
50+
target_os = "horizon",
5051
))]
5152
let (now, dur) = {
5253
use crate::cmp::min;
@@ -72,7 +73,8 @@ unsafe fn wait_timeout(
7273
target_os = "macos",
7374
target_os = "ios",
7475
target_os = "watchos",
75-
target_os = "espidf"
76+
target_os = "espidf",
77+
target_os = "horizon",
7678
)))]
7779
let (now, dur) = {
7880
use crate::sys::time::Timespec;

0 commit comments

Comments
 (0)