about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlexander Light <scialexlight@gmail.com>2014-11-20 16:38:36 -0500
committerAlexander Light <scialexlight@gmail.com>2014-11-21 15:42:01 -0500
commit4c36ad01e709448e8090b79ac96d0a6bb0607b23 (patch)
treecd77f0dbc10914aa365355a656916d455e121eee /src/rustllvm/RustWrapper.cpp
parent96c8f2b0c1846756e617f1f1fc1372c506e24248 (diff)
downloadrust-4c36ad01e709448e8090b79ac96d0a6bb0607b23.tar.gz
rust-4c36ad01e709448e8090b79ac96d0a6bb0607b23.zip
Add `weak_count` and `strong_count` to Rc and Arc
These functions allow you to see how many weak and strong references
there are to an `Arc`, `Rc`, or an `rc::Weak`. Due to the design of
`Arc` it is not possible to get the number of weak references of an
arbitrary `arc::Weak`. Look in `arc.rs` for a more in-depth explanation.

On `arc::Arc` and `arc::Weak` these operations are wait-free and atomic.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions