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

Why not provide the wait_enqueue API? Is there any difficulty? #298

Open
caipengbo opened this issue May 11, 2022 · 3 comments
Open

Why not provide the wait_enqueue API? Is there any difficulty? #298

caipengbo opened this issue May 11, 2022 · 3 comments

Comments

@caipengbo
Copy link

When I use blockingconcurrentqueue , I notice that the wait_enqueue API is not provided, which will blocks when it find no space.

What I want to know is, are we not implementing the API because of any difficulties or is it difficult to implement the API in the current implementation?

@cameron314
Copy link
Owner

It would be non-trivial to implement. See #53.

There would also be extra overhead for every enqueue and dequeue operation.

@caipengbo
Copy link
Author

caipengbo commented May 11, 2022

Thank you. I should have searched the content of closed issue first, so I bothered you.

@cameron314
Copy link
Owner

No bother!

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

No branches or pull requests

2 participants