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 (#555)
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 Signed-off-by: Greg Morenz <greg-morenz@droid.cafe>
- Loading branch information