So I casted boost::lexical_cast<std::string>(boost::this_thread::get_id()) this thread id to string. Now I wonder is it possible to turn it back into thread::id?
So I casted boost::lexical_cast<std::string>(boost::this_thread::get_id()) this thread id to string. Now I wonder is it
Share
Since you mentioned calling ->interrupt I assume you need the boost::thread object, not the boost::thread:id object.
Your best option might be to create a mapping of string – boost::thread objects when spawning threads.