From 426e07c561e41db9dce20ef6cdda5cb31d4dc47a Mon Sep 17 00:00:00 2001 From: Petr Zejdl <petr.zejdl@cern.ch> Date: Thu, 13 Oct 2022 11:38:01 +0200 Subject: [PATCH] Using 100 threads --- test/pipeline_serial_in_order_test/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pipeline_serial_in_order_test/main.cc b/test/pipeline_serial_in_order_test/main.cc index 3d9d8e0c..6eb73704 100644 --- a/test/pipeline_serial_in_order_test/main.cc +++ b/test/pipeline_serial_in_order_test/main.cc @@ -46,7 +46,7 @@ class MyTransformFunc : public tbb::filter { // Lower numbers are delayed more than higher numbers - should force out of // order processing NOTE: It would be better to use barriers but this is // simpler and also works - usleep(static_cast<unsigned int>((10 - (number % 10)) * 100000)); + usleep(static_cast<unsigned int>( (100 - number) * 10000)); LOG(INFO) << number; return item; } @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) { (void)(argc); (void)(argv); - int threads = 10; + int threads = 100; int tokens = 100; int maxN = 100; -- GitLab