MPMCQueue
MPMCQueue copied to clipboard
non-copyable of MPMCQueue
// non-copyable and non-movable
Queue(const Queue &) = delete;
Queue &operator=(const Queue &) = delete;
Is there any reason why MPMC is non-copyable and non-movable~ And if I need to use it as a copyable data structure. What should I do~
The queue is modified concurrently - in the case that it is modified during your copy, your copy will likely end up in a state that did not exist or that is invalid.
If you want a copyable queue it will surely need to be locking.