From b41e9a0b4df0212d1b53a56782f2d5fe2a2d6e68 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 c52ead9..a75e176 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();