Skip to content

A convenience rust library for working with arcs of mutexes

Notifications You must be signed in to change notification settings

kurotetsuka/arcmutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

A convenience rust library for working with arcs of mutexes

Resources

Stars

Watchers

Forks

Packages

No packages published