warking barrier for boost_thread