MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / check_vectors

Function check_vectors

tests/BS_thread_pool_test.cpp:2262–2269  ·  view source on GitHub ↗

* @brief Check that parallelized vector operations work as expected. */

Source from the content-addressed store, hash-verified

2260 * @brief Check that parallelized vector operations work as expected.
2261 */
2262void check_vectors()
2263{
2264 constexpr std::size_t size_range = 1000000;
2265 constexpr std::size_t repeats = 10;
2266 BS::thread_pool pool;
2267 for (std::size_t i = 0; i < repeats; ++i)
2268 check(check_vector_of_size(pool, random<std::size_t>(0, size_range), random<std::size_t>(1, pool.get_thread_count())));
2269}
2270
2271// =================================
2272// Functions to verify task priority

Callers 1

mainFunction · 0.85

Calls 2

checkFunction · 0.85
check_vector_of_sizeFunction · 0.85

Tested by

no test coverage detected