mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 00:31:33 +10:00
chore: Preparation to merge from 156
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
8
src-tauri/utils/src/lock.rs
Normal file
8
src-tauri/utils/src/lock.rs
Normal file
@ -0,0 +1,8 @@
|
||||
#[macro_export]
|
||||
macro_rules! lock {
|
||||
($mutex:expr) => {
|
||||
$mutex
|
||||
.lock()
|
||||
.unwrap_or_else(|_| panic!("Failed to lock onto {}", stringify!($mutex)))
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user