1#[cfg(target_os = "fuchsia")]
8mod condvar;
9#[cfg(target_os = "fuchsia")]
10mod mutex;
11#[cfg(target_os = "fuchsia")]
12mod rwlock;
13
14#[cfg(target_os = "fuchsia")]
15pub use condvar::*;
16#[cfg(target_os = "fuchsia")]
17pub use mutex::*;
18#[cfg(target_os = "fuchsia")]
19pub use rwlock::*;
20
21#[cfg(not(target_os = "fuchsia"))]
22pub use parking_lot::{
23 Condvar, MappedMutexGuard, MappedRwLockReadGuard, MappedRwLockWriteGuard, Mutex, MutexGuard,
24 RawMutex as RawSyncMutex, RawRwLock as RawSyncRwLock, RwLock, RwLockReadGuard,
25 RwLockWriteGuard,
26};
27
28pub fn suppress_lock_cycle_panics() {
31 #[cfg(detect_lock_cycles)]
32 tracing_mutex::suppress_panics();
33}