Lines Matching refs:thread
34 class thread
53 friend class thread;
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);
65 thread() noexcept = default;
66 thread(const thread&) = delete;
67 thread& operator=(const thread&) = delete;
68 ~thread();
71 explicit thread(F&& f, Args&&... args)
79 thread(thread&& t) noexcept
84 thread& operator=(thread&& t) noexcept
93 void swap(thread& t) noexcept
148 inline void swap(thread& x, thread& y) noexcept
154 inline bool operator==(thread::id x, thread::id y) noexcept
157 //"If either t1 or t2 are not valid thread IDs, the behavior is undefined."
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";
198 struct hash<thread::id>
201 typedef thread::id argument_type;
202 size_t operator()(const thread::id& id) const noexcept
210 inline thread::id get_id() noexcept
212 return thread::id(pthread_self());
226 // the precision is limited by rt-thread thread API