Skip to content

Commit

Permalink
Add Apple visionOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinPerez committed Apr 6, 2024
1 parent 7ab94b6 commit c41d4ee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/src/thread_parker/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
target_os = "macos",
target_os = "tvos",
target_os = "ios",
target_os = "watchos"
target_os = "watchos",
target_os = "visionos"
))]
use core::ptr;
use core::{
Expand Down Expand Up @@ -137,6 +138,7 @@ impl ThreadParker {
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "visionos",
target_os = "android",
target_os = "espidf"
))]
Expand All @@ -149,6 +151,7 @@ impl ThreadParker {
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "visionos",
target_os = "android",
target_os = "espidf"
)))]
Expand Down Expand Up @@ -206,7 +209,8 @@ impl super::UnparkHandleT for UnparkHandle {
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
target_os = "watchos",
target_os = "visionos"
))]
#[inline]
fn timespec_now() -> libc::timespec {
Expand All @@ -224,7 +228,8 @@ fn timespec_now() -> libc::timespec {
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
target_os = "watchos",
target_os = "visionos"
)))]
#[inline]
fn timespec_now() -> libc::timespec {
Expand Down

0 comments on commit c41d4ee

Please sign in to comment.