Thread barrier implementation

This commit introduces dynamic_barrier_t. Its a thread barrier that counts joins
but allows callback to be specified later. See std::barrier for a basic barrier
description.
This commit is contained in:
Bartosz Podrygajlo
2024-11-27 18:14:59 +01:00
parent 03946cd47b
commit ea0ea2ff8f
6 changed files with 249 additions and 0 deletions
@@ -0,0 +1,5 @@
add_executable(test_barrier test_barrier.cpp)
target_link_libraries(test_barrier PRIVATE barrier GTest::gtest)
add_dependencies(tests test_barrier)
add_test(NAME test_barrier
COMMAND ./test_barrier)