2607
2607

Reputation: 4125

Boost thread, how can I check if a thread is still running?

I am using boost::thread, how can I tell if a thread is still running from another thread?

Thanks.

Upvotes: 2

Views: 2707

Answers (1)

James Kanze
James Kanze

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

Related Questions