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.
6 lines
201 B
CMake
6 lines
201 B
CMake
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)
|