It seems to me that there should be a problem--thr1 could be sitting their idle while thr0->join is blocking
Why would thr0->join block, when he has tested thr0->is_joinable?
$thr->is_joinable() Returns true if the thread has finished running, is not detached and has not yet been joined. In other words, the thread is ready to be joined, and a call to $thr->join() will not block.
In reply to Re^2: wait for threads to end in parallel
by BrowserUk
in thread wait for threads to end in parallel
by pmarcoen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |