Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rework Arc for FCP of #27718
* 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.

0 comments on commit dfa4bca

Please sign in to comment.