mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Standardize and document the parallel processing toggle
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <random>
|
||||
|
||||
|
||||
#if defined(CATCH_USE_ASYNC)
|
||||
#if defined(CATCH_CONFIG_USE_ASYNC)
|
||||
#include <future>
|
||||
#endif
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace Catch {
|
||||
auto mean = &Detail::mean<std::vector<double>::iterator>;
|
||||
auto stddev = &standard_deviation;
|
||||
|
||||
#ifdef CATCH_USE_ASYNC
|
||||
#if defined(CATCH_CONFIG_USE_ASYNC)
|
||||
auto Estimate = [=](double(*f)(std::vector<double>::iterator, std::vector<double>::iterator)) {
|
||||
auto seed = entropy();
|
||||
return std::async(std::launch::async, [=] {
|
||||
|
Reference in New Issue
Block a user