Thrift: standardize coding style
Summary: Standardize indentation, spacing, #defines etc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664784 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/test/Tests.cc b/lib/cpp/src/concurrency/test/Tests.cc
index 5c4dd24..77e5551 100644
--- a/lib/cpp/src/concurrency/test/Tests.cc
+++ b/lib/cpp/src/concurrency/test/Tests.cc
@@ -14,13 +14,13 @@
args[0] = "all";
- for(int ix = 1; ix < argc; ix++) {
+ for (int ix = 1; ix < argc; ix++) {
args[ix - 1] = std::string(argv[ix]);
}
bool runAll = args[0].compare("all") == 0;
- if(runAll || args[0].compare("thread-factory") == 0) {
+ if (runAll || args[0].compare("thread-factory") == 0) {
ThreadFactoryTests threadFactoryTests;
@@ -41,7 +41,7 @@
assert(threadFactoryTests.monitorTimeoutTest());
}
- if(runAll || args[0].compare("util") == 0) {
+ if (runAll || args[0].compare("util") == 0) {
std::cout << "Util tests..." << std::endl;
@@ -56,7 +56,7 @@
time01 = time00;
size_t count = 0;
- while(time01 < time00 + 10) {
+ while (time01 < time00 + 10) {
count++;
time01 = Util::currentTime();
}
@@ -65,7 +65,7 @@
}
- if(runAll || args[0].compare("timer-manager") == 0) {
+ if (runAll || args[0].compare("timer-manager") == 0) {
std::cout << "TimerManager tests..." << std::endl;
@@ -76,7 +76,7 @@
assert(timerManagerTests.test00());
}
- if(runAll || args[0].compare("thread-manager") == 0) {
+ if (runAll || args[0].compare("thread-manager") == 0) {
std::cout << "ThreadManager tests..." << std::endl;
@@ -96,7 +96,7 @@
}
}
- if(runAll || args[0].compare("thread-manager-benchmark") == 0) {
+ if (runAll || args[0].compare("thread-manager-benchmark") == 0) {
std::cout << "ThreadManager benchmark tests..." << std::endl;
@@ -110,7 +110,7 @@
long long delay = 10LL;
- for(size_t workerCount = minWorkerCount; workerCount < maxWorkerCount; workerCount*= 2) {
+ for (size_t workerCount = minWorkerCount; workerCount < maxWorkerCount; workerCount*= 2) {
size_t taskCount = workerCount * tasksPerWorker;