That seems to work the exact same way... Which is confusing because both threads should function independently of each other.
What seems to work the exact same way (did you adopt that code to your use case)?
Consider Re: Thread parallel execution (join blocks), and throw Thread::Queue in the mix, does dequeue block like join (what I think BrowserUk hints at)?
Thread::Queue SYNOPSIS lists a Non-blocking dequeue
In reply to Re^3: Win32::GUI window freezing, even with threading.
by Anonymous Monk
in thread Win32::GUI window freezing, even with threading.
by chute
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |