Skip to content

Commit

Permalink
lib/cpp/test/concurrency/Tests.cpp: Very minor code cleanup (whitespa…
Browse files Browse the repository at this point in the history
…ce changes only)
  • Loading branch information
emmenlau committed Oct 12, 2023
1 parent 2810fd2 commit d327636
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/cpp/test/concurrency/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <iostream>
#include <vector>
#include <string>
#include <chrono>

#include "ThreadFactoryTests.h"
#include "TimerManagerTests.h"
Expand All @@ -31,7 +32,7 @@ static int WEIGHT = 10;

int main(int argc, char** argv) {

std::vector<std::string> args(argc - 1 > 1 ? argc - 1 : 1);
std::vector<std::string> args((argc - 1) > 1 ? (argc - 1) : 1);

args[0] = "all";

Expand All @@ -44,18 +45,18 @@ int main(int argc, char** argv) {
WEIGHT = 1;
}

bool runAll = args[0].compare("all") == 0;
const bool runAll = args[0].compare("all") == 0;

if (runAll || args[0].compare("thread-factory") == 0) {

ThreadFactoryTests threadFactoryTests;

std::cout << "ThreadFactory tests..." << std::endl;

int reapLoops = 2 * WEIGHT;
int reapCount = 100 * WEIGHT;
size_t floodLoops = 3;
size_t floodCount = 500 * WEIGHT;
const int reapLoops = 2 * WEIGHT;
const int reapCount = 100 * WEIGHT;
const size_t floodLoops = 3;
const size_t floodCount = 500 * WEIGHT;

std::cout << "\t\tThreadFactory reap N threads test: N = " << reapLoops << "x" << reapCount << std::endl;

Expand Down

0 comments on commit d327636

Please sign in to comment.