Lines Matching defs:jthread
37 class _LIBCPP_AVAILABILITY_SYNC jthread {
43 // [thread.jthread.cons], constructors, move, and assignment
44 _LIBCPP_HIDE_FROM_ABI jthread() noexcept : __stop_source_(std::nostopstate) {}
47 _LIBCPP_HIDE_FROM_ABI explicit jthread(_Fun&& __fun, _Args&&... __args)
48 requires(!std::is_same_v<remove_cvref_t<_Fun>, jthread>)
57 _LIBCPP_HIDE_FROM_ABI ~jthread() {
64 jthread(const jthread&) = delete;
66 _LIBCPP_HIDE_FROM_ABI jthread(jthread&&) noexcept = default;
68 jthread& operator=(const jthread&) = delete;
70 _LIBCPP_HIDE_FROM_ABI jthread& operator=(jthread&& __other) noexcept {
83 // [thread.jthread.mem], members
84 _LIBCPP_HIDE_FROM_ABI void swap(jthread& __other) noexcept {
99 // [thread.jthread.stop], stop token handling
106 // [thread.jthread.special], specialized algorithms
107 _LIBCPP_HIDE_FROM_ABI friend void swap(jthread& __lhs, jthread& __rhs) noexcept { __lhs.swap(__rhs); }
109 // [thread.jthread.static], static members