in reply to Re: Data Between Threads
in thread Data Between Threads
On the threadA you are putting shift into $Qab. What is this doing? I am assuming it is to put the parameter into the sub's $Qab, but correct me if I am wrong.
Also what role does $Qab->enqueue( undef ); provide outside of the while loop? Shouldn't the queue be undefined while it is empty? If that is the case what is the advantage of explicitly enqueuing undef?
Thanks everyone for your valuable time!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Data Between Threads
by BrowserUk (Patriarch) on Aug 17, 2016 at 16:16 UTC | |
|
Re^3: Data Between Threads
by GotToBTru (Prior) on Aug 17, 2016 at 16:28 UTC |