命名空间
变体
操作

std::nostopstate,std::nostopstate_t

来自 cppreference.cn
< cpp‎ | thread‎ | stop source
 
 
并发支持库
线程
(C++11)
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
协同取消
互斥
(C++11)
通用锁管理
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
条件变量
(C++11)
信号量
闩锁和屏障
(C++20)
(C++20)
期物
(C++11)
(C++11)
(C++11)
(C++11)
安全回收
(C++26)
Hazard Pointers
原子类型
(C++11)
(C++20)
原子类型的初始化
(C++11)(C++20 中已弃用)
(C++11)(C++20 中已弃用)
内存顺序
(C++11)(C++26 中已弃用)
原子操作的自由函数
原子标志的自由函数
 
 
定义于头文件 <stop_token>
struct nostopstate_t { explicit nostopstate_t() = default; };
(1) (自 C++20 起)
inline constexpr std::nostopstate_t nostopstate {};
(2) (自 C++20 起)
1) 空标记类型,旨在用作 std::stop_source 非默认构造函数中的占位符,使构造的 std::stop_source 为空,且不带关联的停止状态。
2) std::nostopstate_t 的对应常量对象实例,用于构造空的 std::stop_source,作为非默认构造函数中的占位符值。

[编辑] 参见

表示停止一个或多个 std::jthread 的请求的类
(类) [编辑]