Skip to content

Commit

Permalink
Rework Arc for FCP of rust-lang#27718
Browse files Browse the repository at this point in the history
* Add previously omitted function `Arc::try_unwrap(Self) -> Result<T, Self>`
* Move `arc.downgrade()` to `Arc::downgrade(&Self)` per conventions.
* Deprecate `Arc::weak_count` and `Arc::strong_count` for raciness. It is almost
  impossible to correctly act on these results without a CAS loop on the actual
  fields.
* Rename `Arc::make_unique` to `Arc::make_mut` to avoid uniqueness terminology
  and to clarify relation to `Arc::get_mut`.
  • Loading branch information
Gankra committed Aug 19, 2015
1 parent 635f736 commit dfa4bca
Showing 1 changed file with 118 additions and 71 deletions.
Loading

0 comments on commit dfa4bca

Please sign in to comment.