“cpp/thread/condition variable/condition variable”的版本间的差异
来自cppreference.com
< cpp | thread | condition variable
小 (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) |
小 (Use {{lc}}. Update links. Various fixes.) |
||
第1行: | 第1行: | ||
− | {{page | + | {{page|cpp/thread/condition_variable/constructor|condition_variable}} |
[[de:cpp/thread/condition variable/condition variable]] | [[de:cpp/thread/condition variable/condition variable]] |
2013年7月2日 (二) 12:30的版本
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 文档
|