Ditch your code and use Thread::Queue. Your put() method is called $Q->enqueue() and your get() method is called $Q->dequeue().
It is simple, efficient and won't burn a hole in your desk/server room floor by thrashing your cpu to death.
In reply to Re: any module with streaming pipe implementation for use with threads
by BrowserUk
in thread any module with streaming pipe implementation for use with threads
by Rohan_Bhatia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |