名前空間
変種
操作

標準ライブラリヘッダ <latch>

提供: cppreference.com
< cpp‎ | header
 
 
 

このヘッダはスレッドサポートライブラリの一部です。

クラス

(C++20)
1回限りのスレッドバリア
(クラス)[edit]

[編集]概要

namespace std {class latch;}

[編集]クラス std::latch

namespace std {class latch {public:staticconstexpr ptrdiff_t max()noexcept;   constexprexplicit latch(ptrdiff_t expected); ~latch();   latch(const latch&)= delete; latch& operator=(const latch&)= delete;   void count_down(ptrdiff_t update =1);bool try_wait()constnoexcept;void wait()const;void arrive_and_wait(ptrdiff_t update =1);   private: ptrdiff_t counter;// exposition only};}
close