std::thread::get_id()为您提供了一个唯一标识给定线程的实现定义值,但对我来说有趣的是,有一个专用类型thread::id,这种类型是否在标准库中的任何位置使用?
std::thread::get_id()
thread::id
A thread::id是在某个地方使用还是在你知道的任何界面中使用?这种类型的AFAIK无处使用,因此它目前看起来很无用.
c++ multithreading c++11 c++14
c++ ×1
c++11 ×1
c++14 ×1
multithreading ×1