Reputation: 4125
I am using boost::thread, how can I tell if a thread is still running from another thread?
Thanks.
Upvotes: 2
Views: 2707
Reputation: 154047
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.
Upvotes: 2