Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Arc::get_mut instead of Arc::strong_count == 1
Arc::strong_count doesn't come with memory ordering guarantees. As such it should be possible to destory the context multiple times with the previous version of this check. See rust-lang/rust#117485
- Loading branch information