thread::id

概要

スレッドの固有 ID。

構文

class thread::id;

ヘッダー

#include "tbb/compat/thread"

説明

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

メンバー

namespace std {
    class thread::id {
    public:
        id();

        template<typename charT, typename traits>
        friend std::basic_ostream<charT, traits>& 
            operator<< (std::basic_ostream<charT, traits> &out, thread::id id)

        friend bool operator==(thread::id x, thread::id y);
        friend bool operator!=(thread::id x, thread::id y);
        friend bool operator<(thread::id x, thread::id y);
        friend bool operator<=(thread::id x, thread::id y);
        friend bool operator>(thread::id x, thread::id y);
        friend bool operator>=(thread::id x, thread::id y);

        friend size_t tbb_hasher( const thread::id& id );
    };
}

関連情報