mirror of
https://github.com/openharmony/third_party_rust_parking_lot.git
synced 2026-07-01 21:03:59 -04:00
pthread attributes are not yet supported on the esp-idf platform
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user