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

reader_permit: make consume()/signal() API private #13585

Closed

Conversation

denesb
Copy link
Contributor

@denesb denesb commented Apr 20, 2023

This API is dangerous, all resource consumption should happen via RAII objects that guarantee that all consumed resources are appropriately released.
At this poit, said API is just a low-level building block for higher-level, RAII objects. To ensure nobody thinks of using it for other purposes, make it private and make external users friends instead.

Refs: #13539

This API is dangerous, all resource consumption should happen via RAII
objects that guarantee that all consumed resources are appropriately
released.
At this poit, said API is just a low-level building block for
higher-level, RAII objects. To ensure nobody thinks of using it for
other purposes, make it private and make external users friends instead.

Refs: scylladb#13539
@denesb
Copy link
Contributor Author

denesb commented Apr 20, 2023

I have some further patches. Closing this, will reopen once I'm done.

@denesb denesb closed this Apr 20, 2023
@denesb denesb deleted the reader-permit-private-consume-signal branch April 20, 2023 10:29
@scylladb-promoter
Copy link
Contributor

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.

None yet

2 participants