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

Convenient Heap use of BBBuffer #41

Open
jamesmunns opened this issue Dec 4, 2019 · 1 comment
Open

Convenient Heap use of BBBuffer #41

jamesmunns opened this issue Dec 4, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@jamesmunns
Copy link
Owner

It would be good to have a heap allocated version of BBBuffer, that would automatically be dropped when the Producer and Consumer (and all grants) have been dropped.

This should be possible by replacing the NonNull references in the producer or consumer with an Arc reference, and likely providing a constructor for BBBuffer with something like ::new_arc() with the buffer located in something like an Arc<Box<BBBuffer>>.

@jamesmunns
Copy link
Owner Author

This would remove the need to use scoped threads with non-static BBBuffers.

@jamesmunns jamesmunns added this to the v0.4.x milestone Dec 4, 2019
@jamesmunns jamesmunns added enhancement New feature or request help wanted Extra attention is needed labels Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant