#weak-references #atomic #thread #arc

arbalest

Like Arc<T> but where weak references don't forbid mutable access

3 unstable releases

Uses old Rust 2015

0.2.1 Jan 22, 2019
0.2.0 Jan 21, 2019
0.1.1 Jan 20, 2019
0.1.0 Jan 20, 2019

#966 in Concurrency

26 downloads per month

Apache-2.0 OR MIT

46KB
441 lines

Arbalest

This is a thread-safe reference-counted smart pointer with weak references.

How is it different from Arc<T>?

The weak references don't prevent mutable access to the inner value, Strong::borrow_mut will always succeed as long as there is a single Strong<T> handle to the value that should be mutated.

How can I help?

Improve documentation, review the code (most importantly the atomic operations), make use of it.


lib.rs:

“Arbalest” is just a cute name, an Arc<T> with a twist, and “arc” is French for “bow”.

No runtime deps