Skip to content

Commit

Permalink
Merge pull request #319 from MabezDev/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 18, 2022
2 parents 847b5ca + 9dccd34 commit efbbcab
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 efbbcab

Please sign in to comment.