mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
chore: add trace logging for mutex locks
This commit is contained in:
parent
c1ea5fad7e
commit
aed04c1ccf
1 changed files with 3 additions and 2 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Reference in a new issue