Unique identifier for a thread.
class thread::id;
#include "tbb/compat/thread"
A thread::id is an identifier value for a thread that remains unique over the thread's lifetime. A special value thread::id() represents no thread of execution. The instances are totally ordered.
namespace tbb { class thread::id { public: id(); }; template<typename charT, typename traits> std::basic_ostream<charT, traits>& operator<< (std::basic_ostream<charT, traits> &out, thread::id id) bool operator==(thread::id x, thread::id y); bool operator!=(thread::id x, thread::id y); bool operator<(thread::id x, thread::id y); bool operator<=(thread::id x, thread::id y); bool operator>(thread::id x, thread::id y); bool operator>=(thread::id x, thread::id y); } // namespace tbb