$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.Previous block of code (while (..) {..}) used to wait threads to finish (I think). But may be I'm wrong :-(
In reply to Re^2: What is the correct way to finish multithreaded program?
by Gangabass
in thread What is the correct way to finish multithreaded program?
by Gangabass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |