Standard library header <barrier> (C++20)
This header is part of the thread support library.
Classes | |
| (C++20) |
reusable thread barrier (class template) |
[edit] Synopsis
namespace std { template<class CompletionFunction = /* see description */> class barrier; }
[edit] Class template std::barrier
namespace std { template<class CompletionFunction = /* see description */> class barrier { public: using arrival_token = /* see description */; static constexpr ptrdiff_t max() noexcept; constexpr explicit barrier(ptrdiff_t expected, CompletionFunction f = CompletionFunction()); ~barrier(); barrier(const barrier&) = delete; barrier& operator=(const barrier&) = delete; [[nodiscard]] arrival_token arrive(ptrdiff_t update = 1); void wait(arrival_token&& arrival) const; void arrive_and_wait(); void arrive_and_drop(); private: CompletionFunction completion; // exposition only }; }

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
