I am using boost::thread, how can I tell if a thread is still running from another thread?
Thanks.
I am using boost::thread, how can I tell if a thread is still running from another thread?
Thanks.
The general answer would be that you can't, but if you just want to check so as to avoid blocking in join
, there's a timed_join
function.