What is the purpose of `std::barrier` introduced in C++20?
-
A
To create a memory fence preventing compiler reordering
-
B
To synchronize a fixed number of threads at a checkpoint before any can proceed past it
-
C
To atomically block a single thread until a condition is met
-
D
To protect a critical section from concurrent access