Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify implementation of RefCount and MultiRefCount. #2548

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

jimblandy
Copy link
Member

RefCount::rich_drop_inner is no longer used by anything other than RefCount::drop. It's simpler to just handle it directly in drop.

MultiRefCount has no need to heap-allocate the count, since it's never cloned.

`RefCount::rich_drop_inner` is no longer used by anything other than `RefCount::drop`. It's simpler to just handle it directly in `drop`.

`MultiRefCount` has no need to heap-allocate the count, since it's
never cloned.
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

llove this, thank you!

@kvark kvark merged commit e821e18 into gfx-rs:master Mar 21, 2022
@jimblandy jimblandy deleted the simplify-refcount-multirefcount branch March 28, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants