boost::thread state check

Boost-users