blob: cfa8d983a7abfffc54e66c400969ef47f21948ac [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#[cfg(not(any(test, debug_assertions)))]
pub type Mutex<T> = parking_lot::Mutex<T>;
#[cfg(not(any(test, debug_assertions)))]
pub type MutexGuard<'a, T> = parking_lot::MutexGuard<'a, T>;
#[cfg(not(any(test, debug_assertions)))]
pub type RwLock<T> = parking_lot::RwLock<T>;
#[cfg(not(any(test, debug_assertions)))]
pub type RwLockReadGuard<'a, T> = parking_lot::RwLockReadGuard<'a, T>;
#[cfg(not(any(test, debug_assertions)))]
pub type RwLockWriteGuard<'a, T> = parking_lot::RwLockWriteGuard<'a, T>;
#[cfg(any(test, debug_assertions))]
pub type Mutex<T> = tracing_mutex::parkinglot::TracingMutex<T>;
#[cfg(any(test, debug_assertions))]
pub type MutexGuard<'a, T> = tracing_mutex::parkinglot::TracingMutexGuard<'a, T>;
#[cfg(any(test, debug_assertions))]
pub type RwLock<T> = tracing_mutex::parkinglot::TracingRwLock<T>;
#[cfg(any(test, debug_assertions))]
pub type RwLockReadGuard<'a, T> = tracing_mutex::parkinglot::TracingRwLockReadGuard<'a, T>;
#[cfg(any(test, debug_assertions))]
pub type RwLockWriteGuard<'a, T> = tracing_mutex::parkinglot::TracingRwLockWriteGuard<'a, T>;