Macro lilos::create_mutex [−][src]
macro_rules! create_mutex { ($var:ident, $contents:expr) => { ... }; }
Convenience macro for creating a pinned mutex on the stack.
This declares a local variable ident
of type Pin<&mut Mutex<T>>
, where
T
is the type of expr
. The contents of the mutex are initialized to the
value of expr
.