“cpp/thread/condition variable/condition variable”的版本间的差异
来自cppreference.com
< cpp | thread | condition variable
小 (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) |
小 |
||
(未显示1个用户的1个中间版本) | |||
第1行: | 第1行: | ||
− | {{page | + | {{page|cpp/thread/condition_variable/constructor|condition_variable}} |
− | + | deenesfritjaptru | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
2017年8月27日 (日) 20:43的最后版本
condition_variable(); |
(1) | (C++11 起) |
condition_variable( const condition_variable& ) = delete; |
(2) | (C++11 起) |
1) 构造
std::condition_variable
类型的对象。2) 复制构造函数被弃置。
[编辑] 参数
(无)
[编辑] 异常
1) 可能抛出 std::system_error,它的 std::error_condition 在线程没有创建条件变量的权限时等于 std::errc::operation_not_permitted,在某项非内存资源限制阻止这此初始化时等于 std::errc::resource_unavailable_try_again,或者等于其他由实现定义的值。
[编辑] 参阅
cnd_init 的 C 文档
|