Lines Matching refs:thread

2 //===--------------------------- 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;
57 bool operator< (thread::id x, thread::id y) noexcept;
58 bool operator<=(thread::id x, thread::id y) noexcept;
59 bool operator> (thread::id x, thread::id y) noexcept;
60 bool operator>=(thread::id x, thread::id y) noexcept;
64 operator<<(basic_ostream<charT, traits>& out, thread::id id);
69 thread::id get_id() noexcept;
109 #error <thread> is not supported on this single threaded system
187 // thread local data. For this reason we leak the key.
195 "Attempting to overwrite thread local data");
216 class _LIBCPP_TYPE_VIS thread
220 thread(const thread&);
221 thread& operator=(const thread&);
227 thread() _NOEXCEPT : __t_(_LIBCPP_NULL_THREAD) {}
232 !is_same<typename __uncvref<_Fp>::type, thread>::value
236 explicit thread(_Fp&& __f, _Args&&... __args);
240 explicit thread(_Fp __f);
242 ~thread();
245 thread(thread&& __t) _NOEXCEPT : __t_(__t.__t_) {
250 thread& operator=(thread&& __t) _NOEXCEPT {
259 void swap(thread& __t) _NOEXCEPT {_VSTD::swap(__t_, __t.__t_);}
298 thread::thread(_Fp&& __f, _Args&&... __args)
311 __throw_system_error(__ec, "thread constructor failed");
318 // This type is used to pass memory for thread local storage and a functor
319 // to a newly created thread because std::pair doesn't work with
336 thread::thread(_Fp __f)
346 __throw_system_error(__ec, "thread constructor failed");
352 void swap(thread& __x, thread& __y) _NOEXCEPT {__x.swap(__y);}