Skip to content

Commit c2720e2

Browse files
committed
(lib/sleep_until) add vxworks (os) clock_nanosleep impl
1 parent 61b9ff1 commit c2720e2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

library/std/src/sys/pal/unix/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ impl Thread {
313313
target_os = "dragonfly",
314314
target_os = "hurd",
315315
target_os = "fuchsia",
316+
target_os = "vxworks",
316317
target_vendor = "apple"
317318
)))]
318319
pub fn sleep_until(deadline: Instant) {
@@ -334,6 +335,7 @@ impl Thread {
334335
target_os = "dragonfly",
335336
target_os = "hurd",
336337
target_os = "fuchsia",
338+
target_os = "vxworks",
337339
))]
338340
pub fn sleep_until(deadline: crate::time::Instant) {
339341
let mut ts = deadline

library/std/src/thread/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ pub fn sleep(dur: Duration) {
894894
/// | Dragonfly | [clock_nanosleep] (Monotonic Clock)] |
895895
/// | Hurd | [clock_nanosleep] (Monotonic Clock)] |
896896
/// | Fuchsia | [clock_nanosleep] (Monotonic Clock)] |
897+
/// | Vxworks | [clock_nanosleep] (Monotonic Clock)] |
897898
/// | Darwin | [mach_wait_until] |
898899
/// | WASI | [subscription_clock] |
899900
/// | Other | `sleep_until` uses [`sleep`] and does not issue a syscall itself |

0 commit comments

Comments
 (0)