std::latch::latch
来自cppreference.com
并发支持库
|
|
std::latch
成员函数 | ||||
latch::latch
|
||||
常量 | ||||
constexpr
explicit
latch(
std::ptrdiff_t
expected );
|
(1) | (C++20 起) |
latch(
const
latch &
) =
delete;
|
(2) | (C++20 起) |
1) 构造
latch
并初始化其内部计数器。若 expected
为负或大于 max()
则行为未定义。2) 复制构造函数被删除。
latch
既不可复制亦不可移动。参数
expected | - | 内部计数器的初值 |
异常
不抛出。