Previous
-
Next
Thread::Queue
I used
Thread::Queue
for this
A thread-safe queue
One thread can put something in the end of the queue, another can read from the front
If there is nothing to read, the thread blocks
Previous
-
Next