There is nothing obviously wrong in the code you've posted.
I suspect that you are running out of memory by filling the input queue faster than it can be processed and the process doesn't actually stop, but rather stalls whilst it attempts to free up enough memory to increase the size of the input queue.
You will have to post the complete program, preferably cut down, but still demonstrating the problem.
In reply to Re: Tread::Queue enqueue blocks all of my threads
by BrowserUk
in thread Tread::Queue enqueue blocks all of my threads
by sivert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |