Lines Matching refs:thread
2 //===--------------------------- thread -----------------------------------===//
16 thread synopsis
23 class thread
29 thread() noexcept;
30 template <class F, class ...Args> explicit thread(F&& f, Args&&... args);
31 ~thread();
33 thread(const thread&) = delete;
34 thread(thread&& t) noexcept;
36 thread& operator=(const thread&) = delete;
37 thread& operator=(thread&& t) noexcept;
39 void swap(thread& t) noexcept;
50 void swap(thread& x, thread& y) noexcept;
52 class thread::id
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;
61 bool operator<=(thread::id x, thread::id y) noexcept;
62 bool operator> (thread::id x, thread::id y) noexcept;
63 bool operator>=(thread::id x, thread::id y) noexcept;
67 operator<<(basic_ostream<charT, traits>& out, thread::id id);
72 thread::id get_id() noexcept;
114 #error <thread> is not supported on this single threaded system
192 // thread local data. For this reason we leak the key.
200 "Attempting to overwrite thread local data");
221 class _LIBCPP_TYPE_VIS thread
225 thread(const thread&);
226 thread& operator=(const thread&);
232 thread() _NOEXCEPT : __t_(_LIBCPP_NULL_THREAD) {}
237 !is_same<typename __uncvref<_Fp>::type, thread>::value
241 explicit thread(_Fp&& __f, _Args&&... __args);
245 explicit thread(_Fp __f);
247 ~thread();
251 thread(thread&& __t) _NOEXCEPT : __t_(__t.__t_) {__t.__t_ = _LIBCPP_NULL_THREAD;}
253 thread& operator=(thread&& __t) _NOEXCEPT;
257 void swap(thread& __t) _NOEXCEPT {_VSTD::swap(__t_, __t.__t_);}
295 thread::thread(_Fp&& __f, _Args&&... __args)
308 __throw_system_error(__ec, "thread constructor failed");
312 thread&
313 thread::operator=(thread&& __t) _NOEXCEPT
326 // This type is used to pass memory for thread local storage and a functor
327 // to a newly created thread because std::pair doesn't work with
344 thread::thread(_Fp __f)
354 __throw_system_error(__ec, "thread constructor failed");
360 void swap(thread& __x, thread& __y) _NOEXCEPT {__x.swap(__y);}