macro_rules! rumtk_new_lock {
( $data:expr ) => { ... };
}Expand description
Creates a new safe lock to guard the given data. This interface was created to cleanup lock management for consumers of framework!
ยงExample
use rumtk_core::{rumtk_new_lock};
let data = 5;
let lock = rumtk_new_lock!(data);