Add new reset_dependencies API

This commit is contained in:
2025-03-01 13:25:20 +01:00
parent ebdb6a18fe
commit d1a6b93ea8
4 changed files with 93 additions and 0 deletions

View File

@@ -23,7 +23,9 @@ use lock_api::RawRwLockUpgradeDowngrade;
use lock_api::RawRwLockUpgradeFair;
use lock_api::RawRwLockUpgradeTimed;
use crate::util::PrivateTraced;
use crate::LazyMutexId;
use crate::MutexId;
/// Tracing wrapper for all [`lock_api`] traits.
///
@@ -86,6 +88,12 @@ impl<T> TracingWrapper<T> {
}
}
impl<T> PrivateTraced for TracingWrapper<T> {
fn get_id(&self) -> &MutexId {
&self.id
}
}
unsafe impl<T> RawMutex for TracingWrapper<T>
where
T: RawMutex,