arcmutex

Crates.ioarcmutex
lib.rsarcmutex
version0.2.0
sourcesrc
created_at2015-03-28 03:41:00.165372
updated_at2015-12-18 19:19:21.343261
descriptionA convenience library for working with `Arc>`s
homepagehttps://github.com/kurotetsuka/arcmutex
repositoryhttps://github.com/kurotetsuka/arcmutex
max_upload_size
id1728
size2,875
kurotetsuka (kurotetsuka)

documentation

README

ArcMutex

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

Contributions welcome! :)

Author: Kurotetsuka
License: MIT

Example

extern crate arcmutex;
use arcmutex::{ arcmutex, ArcMutex};

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

cargo fmt