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

How to use Concurrent queue with std::vector #383

Open
harshad-0302 opened this issue Apr 30, 2024 · 1 comment
Open

How to use Concurrent queue with std::vector #383

harshad-0302 opened this issue Apr 30, 2024 · 1 comment

Comments

@harshad-0302
Copy link

I have to create new queue with each thread creation. The number of queues which will be created is not fixed .
Therefore I can't use static array.
So i wanted to ask how to use concurrent queue with std::vector.?
How to initialize & pass values for min elements , no of producers .?

@cameron314
Copy link
Owner

Look into thread_local.

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