Skip to content

Commit

Permalink
pthread attributes are not yet supported on the esp-idf platform
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Feb 15, 2022
1 parent 847b5ca commit 9dccd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/thread_parker/unix.rs
Expand Up @@ -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::<libc::pthread_condattr_t>::uninit();
Expand Down

0 comments on commit 9dccd34

Please sign in to comment.