My purpose is to create queue sets for send data to each thread, assign queue's address to each thread, and then freely pass data to by queue
To do this, what kind of method or container I use? One of the plans I came up with was to deliver data through a vector that stored the address of the concurrent_queue or a linked list of connections.
ex)
std::vector<concurrency::concurrent_queue<int>*>
or
struct ptr_queue
{
ptr_queue* pre_node;
concurrency::concurrent_queue<int>* m_queue;
ptr_queue* next_node;
};
But I had doubts about whether this was the best way and, about Is there really good way.