arcmutex 0.2.0

A convenience library for working with `Arc<Mutex<T>>`s
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 2.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • kurotetsuka/arcmutex
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kurotetsuka

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