Skip to content

Commit 7f65a9d

Browse files
committed
(lib/sleep_until) add vxworks (os) clock_nanosleep impl
1 parent 840188d commit 7f65a9d

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
@@ -897,6 +897,7 @@ pub fn sleep(dur: Duration) {
897897
/// | Dragonfly | [clock_nanosleep] (Monotonic Clock)] |
898898
/// | Hurd | [clock_nanosleep] (Monotonic Clock)] |
899899
/// | Fuchsia | [clock_nanosleep] (Monotonic Clock)] |
900+
/// | Vxworks | [clock_nanosleep] (Monotonic Clock)] |
900901
/// | Darwin | [mach_wait_until] |
901902
/// | WASI | [subscription_clock] |
902903
/// | Other | `sleep_until` uses [`sleep`] and does not issue a syscall itself |

0 commit comments

Comments
 (0)