Lines Matching defs:jthread
39 class _LIBCPP_AVAILABILITY_SYNC jthread {
45 // [thread.jthread.cons], constructors, move, and assignment
46 _LIBCPP_HIDE_FROM_ABI jthread() noexcept : __stop_source_(std::nostopstate) {}
49 _LIBCPP_HIDE_FROM_ABI explicit jthread(_Fun&& __fun, _Args&&... __args)
50 requires(!std::is_same_v<remove_cvref_t<_Fun>, jthread>)
59 _LIBCPP_HIDE_FROM_ABI ~jthread() {
66 jthread(const jthread&) = delete;
68 _LIBCPP_HIDE_FROM_ABI jthread(jthread&&) noexcept = default;
70 jthread& operator=(const jthread&) = delete;
72 _LIBCPP_HIDE_FROM_ABI jthread& operator=(jthread&& __other) noexcept {
85 // [thread.jthread.mem], members
86 _LIBCPP_HIDE_FROM_ABI void swap(jthread& __other) noexcept {
101 // [thread.jthread.stop], stop token handling
108 // [thread.jthread.special], specialized algorithms
109 _LIBCPP_HIDE_FROM_ABI friend void swap(jthread& __lhs, jthread& __rhs) noexcept { __lhs.swap(__rhs); }
111 // [thread.jthread.static], static members