Lines Matching refs:thread
15 thread synopsis
20 class thread
26 thread() noexcept;
27 template <class F, class ...Args> explicit thread(F&& f, Args&&... args);
28 ~thread();
30 thread(const thread&) = delete;
31 thread(thread&& t) noexcept;
33 thread& operator=(const thread&) = delete;
34 thread& operator=(thread&& t) noexcept;
36 void swap(thread& t) noexcept;
47 void swap(thread& x, thread& y) noexcept;
49 class thread::id
55 bool operator==(thread::id x, thread::id y) noexcept;
56 bool operator!=(thread::id x, thread::id y) noexcept; // removed in C++20
57 bool operator< (thread::id x, thread::id y) noexcept; // removed in C++20
58 bool operator<=(thread::id x, thread::id y) noexcept; // removed in C++20
59 bool operator> (thread::id x, thread::id y) noexcept; // removed in C++20
60 bool operator>=(thread::id x, thread::id y) noexcept; // removed in C++20
61 strong_ordering operator<=>(thread::id x, thread::id y) noexcept; // C++20
65 operator<<(basic_ostream<charT, traits>& out, thread::id id);
70 thread::id get_id() noexcept;
104 // [thread.syn]
115 # error "<thread> is not supported since libc++ has been configured without support for threads."
193 // thread local data. For this reason we leak the key.
201 "Attempting to overwrite thread local data");
222 class _LIBCPP_TYPE_VIS thread
226 thread(const thread&);
227 thread& operator=(const thread&);
233 thread() _NOEXCEPT : __t_(_LIBCPP_NULL_THREAD) {}
236 class = __enable_if_t<!is_same<__remove_cvref_t<_Fp>, thread>::value> >
238 explicit thread(_Fp&& __f, _Args&&... __args);
242 explicit thread(_Fp __f);
244 ~thread();
247 thread(thread&& __t) _NOEXCEPT : __t_(__t.__t_) {
252 thread& operator=(thread&& __t) _NOEXCEPT {
261 void swap(thread& __t) _NOEXCEPT {_VSTD::swap(__t_, __t.__t_);}
300 thread::thread(_Fp&& __f, _Args&&... __args)
313 __throw_system_error(__ec, "thread constructor failed");
320 // This type is used to pass memory for thread local storage and a functor
321 // to a newly created thread because std::pair doesn't work with
338 thread::thread(_Fp __f)
348 __throw_system_error(__ec, "thread constructor failed");
354 void swap(thread& __x, thread& __y) _NOEXCEPT {__x.swap(__y);}