main did not wait because is_joinable returned false, so you didn't join
if you want to wait for $thrHandle, simply join, join blocks, join waits until the thread over, until it is_joinable
Study this example Re^2: Thread parallel execution (joinable)
In reply to Re: is_joinable question
by Anonymous Monk
in thread is_joinable question
by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |