he things you put in a Thread::Queue don't need to be shared. Just the Thread::Queue itself.
They do if you want access them from more than one thread. Note that I am passing a reference to the shared buffer via the Queue, not the buffer itself.
If you can see a better way of coding this, please post your code.
In reply to Re^3: need a thread to wait until a buffer is full.
by BrowserUk
in thread need a thread to wait until a buffer is full.
by exodist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |