diff options
| author | Alexander Light <scialexlight@gmail.com> | 2014-11-20 16:38:36 -0500 |
|---|---|---|
| committer | Alexander Light <scialexlight@gmail.com> | 2014-11-21 15:42:01 -0500 |
| commit | 4c36ad01e709448e8090b79ac96d0a6bb0607b23 (patch) | |
| tree | cd77f0dbc10914aa365355a656916d455e121eee /src/rustllvm/RustWrapper.cpp | |
| parent | 96c8f2b0c1846756e617f1f1fc1372c506e24248 (diff) | |
| download | rust-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
