#arc #mutex #macro

arcmutex

A convenience library for working with Arc<Mutex<T>>s

3 unstable releases

Uses old Rust 2015

0.2.0 Dec 18, 2015
0.1.1 Mar 28, 2015
0.1.0 Mar 28, 2015

#2238 in Rust patterns

Download history 2/week @ 2023-10-14 7/week @ 2023-10-28 2/week @ 2023-11-04 4/week @ 2023-11-11 6/week @ 2023-11-18 13/week @ 2023-11-25 7/week @ 2023-12-02 1/week @ 2023-12-09 54/week @ 2023-12-16 22/week @ 2023-12-23 15/week @ 2023-12-30 9/week @ 2024-01-06 16/week @ 2024-01-13 27/week @ 2024-01-20 51/week @ 2024-01-27

103 downloads per month

MIT license

2KB

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

No runtime deps