Files
rust/src/liballoc
Dylan DPC 5e9b3720e5 Rollup merge of #70733 - yoshuawuyts:arc-increment-refcount, r=Mark-Simulacrum
Add Arc::{incr,decr}_strong_count

This adds two `unsafe` methods to `Arc`: `incr_strong_count` and `decr_strong_count`. A suggestion to add methods to change the strong count in `Arc` came up in during review in https://github.com/rust-lang/rust/pull/68700#discussion_r396169064, and from asking a few people this seemed like generally useful to have.

References:
- [Motivation from #68700](https://github.com/rust-lang/rust/pull/68700#discussion_r396169064)
- [Real world example in an executor](https://docs.rs/extreme/666.666.666666/src/extreme/lib.rs.html#13)
2020-05-07 21:46:06 +02:00
..
2020-03-28 20:22:07 +01:00
2019-11-29 20:25:07 -08:00
2020-03-26 17:14:12 +01:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2019-08-04 14:50:26 +02:00
2020-05-06 19:01:27 -04:00
2020-04-14 10:27:55 +03:00
2020-05-07 17:18:25 +02:00