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

acquire() and release() functions return pointers, for better ergonomics #234

Merged
merged 6 commits into from
Nov 18, 2022

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Nov 18, 2022

Over time, we've settled on this as the "standard" way of doing acquire/release functions in our codebase.

I've updated anywhere we were calling one of these functions, then updating a pointer, so that we do it in 1 line of code instead of 2.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@graebm graebm changed the title public acquire() and release() functions return pointers, for better ergonomics acquire() and release() functions return pointers, for better ergonomics Nov 18, 2022
@graebm graebm merged commit 502ac42 into main Nov 18, 2022
@graebm graebm deleted the acquire-release branch November 18, 2022 23:45
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.

3 participants