thread::id

概要

スレッドの固有 ID。

構文

class thread::id;

ヘッダー

#include "tbb/compat/thread"

説明

thread::id は、スレッドの生存期間を通じて常に固有なスレッドの ID 値です。特別な値 thread::id() は、実行のスレッドを表しません。インスタンスはすべて順序付けられます。

メンバー

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);
                } // tbb 名前空間