Documentation

ArcMutex

A rust library for making working with Arc<Mutex<T>>s more convenient.
Defines the ArcMutex<T> type alias and the arcmutex!( expr) macro.

Author: Kurotetsuka
License: MIT

Example

let a : ArcMutex< u8> = arcmutex!( 0);
let mut b = a.lock().unwrap();
*b += 1;
println!( "a: {}", *b);