concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

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

Open caipengbo opened this issue 3 years ago • 3 comments

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?

caipengbo avatar May 11 '22 13:05 caipengbo

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

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

cameron314 avatar May 11 '22 13:05 cameron314

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

caipengbo avatar May 11 '22 13:05 caipengbo

No bother!

cameron314 avatar May 11 '22 13:05 cameron314