1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-09-18 04:36:57 +02:00

chore: add trace logging for mutex locks

This commit is contained in:
Jake Stanger 2023-04-29 22:09:14 +01:00
commit aed04c1ccf
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -53,9 +53,10 @@ macro_rules! try_send {
/// ```
#[macro_export]
macro_rules! lock {
($mutex:expr) => {
($mutex:expr) => {{
tracing::trace!("Locking {}", std::stringify!($mutex));
$mutex.lock().expect($crate::error::ERR_MUTEX_LOCK)
};
}};
}
/// Gets a read lock on a `RwLock`.