From 9dccd342f5b64e388a3f29cc823c675e87aec212 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 15 Feb 2022 11:40:10 +0000 Subject: [PATCH] pthread attributes are not yet supported on the esp-idf platform --- core/src/thread_parker/unix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/thread_parker/unix.rs b/core/src/thread_parker/unix.rs index c52ead93..a75e1768 100644 --- a/core/src/thread_parker/unix.rs +++ b/core/src/thread_parker/unix.rs @@ -127,12 +127,12 @@ impl super::ThreadParkerT for ThreadParker { impl ThreadParker { /// Initializes the condvar to use CLOCK_MONOTONIC instead of CLOCK_REALTIME. - #[cfg(any(target_os = "macos", target_os = "ios", target_os = "android"))] + #[cfg(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "espidf"))] #[inline] unsafe fn init(&self) {} /// Initializes the condvar to use CLOCK_MONOTONIC instead of CLOCK_REALTIME. - #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android")))] + #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "espidf")))] #[inline] unsafe fn init(&self) { let mut attr = MaybeUninit::::uninit();