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

can this collection ensure FIFO? #2

Closed
HaoLiuHust opened this issue Oct 18, 2019 · 2 comments
Closed

can this collection ensure FIFO? #2

HaoLiuHust opened this issue Oct 18, 2019 · 2 comments

Comments

@HaoLiuHust
Copy link

No description provided.

@gm127
Copy link
Contributor

gm127 commented Oct 29, 2019

Yes. BlockingCollection synchronizes access to a std::deque. So as long as it is configured to use the Queue collection type (e.g. BlockingQueue) then all takes will go to std::deque's pop_front method. This ensures FIFO.

@HaoLiuHust
Copy link
Author

Thanks for your reply, I have already use it, wonderful work

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