Lines Matching refs:id
42 class id
48 id() noexcept : __cpp_thread_t(CPP_UNJOINABLE_THREAD) {}
50 explicit id(native_handle_type hid)
54 friend class hash<thread::id>;
56 friend bool operator==(thread::id x, thread::id y) noexcept;
58 friend bool operator<(thread::id x, thread::id y) noexcept;
62 operator<<(basic_ostream<charT, traits>& out, thread::id id);
107 id get_id() const noexcept { return _m_thr; }
115 id _m_thr;
154 inline bool operator==(thread::id x, thread::id y) noexcept
161 inline bool operator!=(thread::id x, thread::id y) noexcept
166 inline bool operator<(thread::id x, thread::id y) noexcept
171 inline bool operator<=(thread::id x, thread::id y) noexcept
176 inline bool operator>(thread::id x, thread::id y) noexcept
181 inline bool operator>=(thread::id x, thread::id y) noexcept
188 operator<<(basic_ostream<charT, traits>& out, thread::id id)
190 if (id == thread::id()) // id is invalid, representing no pthread
191 out << "thread::id of a non-executing thread";
193 out << id.__cpp_thread_t;
198 struct hash<thread::id>
201 typedef thread::id argument_type;
202 size_t operator()(const thread::id& id) const noexcept
204 return hash<rt_cpp_thread_t>()(id.__cpp_thread_t);
210 inline thread::id get_id() noexcept
212 return thread::id(pthread_self());