|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
barrier::barrier | ||||
| Constants | ||||
constexprexplicit barrier(std::ptrdiff_t expected, CompletionFunction f= CompletionFunction()); | (1) | (since C++20) |
barrier(const barrier&)= delete; | (2) | (since C++20) |
max().barrier is neither copyable nor movable.| expected | - | initial value of the expected count |
| f | - | completion function object to be called on phase completion step |
CompletionFunction's move constructor.expected is permitted to be zero. However, calling any non-static member function other than the destructor on suchbarrier results in undefined behavior. In other words, suchbarrier can only be destroyed.