c++ 11 std::thread 线程 获取线程ID的整数值

std::ostringstream oss;
oss << std::this_thread::get_id();
std::string stid = oss.str();
unsigned long long tid = std::stoull(stid);

你可能感兴趣的:(c++11,thread,id)