Skip to content

Commit 645a1e8

Browse files
committed
Only update the sleep implementation
1 parent 1344803 commit 645a1e8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ pub fn sleep_until(deadline: crate::time::Instant) {
731731
}
732732
}
733733

734-
#[cfg(any(target_vendor = "apple", target_os = "fuchsia"))]
734+
#[cfg(target_vendor = "apple")]
735735
pub fn sleep_until(deadline: crate::time::Instant) {
736736
unsafe extern "C" {
737737
// This is defined in the public header mach/mach_time.h alongside

library/std/src/thread/functions.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ pub fn sleep(dur: Duration) {
316316
/// | Illumos | [clock_nanosleep] (Monotonic Clock)] |
317317
/// | Dragonfly | [clock_nanosleep] (Monotonic Clock)] |
318318
/// | Hurd | [clock_nanosleep] (Monotonic Clock)] |
319-
/// | Fuchsia | [nanosleep] (Monotonic Clock)] |
320319
/// | Vxworks | [clock_nanosleep] (Monotonic Clock)] |
321320
/// | Apple | `mach_wait_until` |
322321
/// | Other | `sleep_until` uses [`sleep`] and does not issue a syscall itself |

0 commit comments

Comments
 (0)