diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-11-23 14:11:50 -0500 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-11-23 14:11:50 -0500 |
| commit | 77d1f0b83ba8505d67532cb18be8d4c74a083cb4 (patch) | |
| tree | b94b79a4814b6e9a8e08dd21c246c3403f8530d8 /src/rustllvm/RustWrapper.cpp | |
| parent | 1e5de8cf3cde5f8cc7376c637d072b765c6403fe (diff) | |
| parent | 69861df831a2d0c551b46a291c2530aeeab6c704 (diff) | |
| download | rust-77d1f0b83ba8505d67532cb18be8d4c74a083cb4.tar.gz rust-77d1f0b83ba8505d67532cb18be8d4c74a083cb4.zip | |
rollup merge of #19193: scialex/rc-counts
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. This sort of information is useful for creating dynamically cleared caches for use in OS development, for example holding pages of files in memory until the address space is needed for something else.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
