Thrift: Cleaned up whitespace.
Summary:
Replaced a lot of tabs with spaces in the thrift codebase.
Removed a lot of trailing whitespace from thrift-generated c++.
Added a few things to cleanup.sh.
Trac Bug: #
Blame Rev:
Reviewed By: mcslee
Test Plan:
Recompiled thrift.
Re-thrifted some test .thrifts.
Compiled the genrated c++.
Ran cleanup.sh.
Revert Plan: ok
Notes:
EImportant:
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665176 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/test/ThreadManagerTests.h b/lib/cpp/src/concurrency/test/ThreadManagerTests.h
index a8fdcda..261ad5e 100644
--- a/lib/cpp/src/concurrency/test/ThreadManagerTests.h
+++ b/lib/cpp/src/concurrency/test/ThreadManagerTests.h
@@ -65,14 +65,14 @@
{
Synchronized s(_monitor);
- // std::cout << "Thread " << _count << " completed " << std::endl;
+ // std::cout << "Thread " << _count << " completed " << std::endl;
- _count--;
+ _count--;
- if (_count == 0) {
+ if (_count == 0) {
- _monitor.notify();
- }
+ _monitor.notify();
+ }
}
}
@@ -117,7 +117,7 @@
for (std::set<shared_ptr<ThreadManagerTests::Task> >::iterator ix = tasks.begin(); ix != tasks.end(); ix++) {
- threadManager->add(*ix);
+ threadManager->add(*ix);
}
{
@@ -125,7 +125,7 @@
while(activeCount > 0) {
- monitor.wait();
+ monitor.wait();
}
}
@@ -147,19 +147,19 @@
assert(delta > 0);
if (task->_startTime < firstTime) {
- firstTime = task->_startTime;
+ firstTime = task->_startTime;
}
if (task->_endTime > lastTime) {
- lastTime = task->_endTime;
+ lastTime = task->_endTime;
}
if (delta < minTime) {
- minTime = delta;
+ minTime = delta;
}
if (delta > maxTime) {
- maxTime = delta;
+ maxTime = delta;
}
averageTime+= delta;
@@ -258,7 +258,7 @@
}
for (std::set<shared_ptr<ThreadManagerTests::BlockTask> >::iterator ix = tasks.begin(); ix != tasks.end(); ix++) {
- threadManager->add(*ix);
+ threadManager->add(*ix);
}
if(!(success = (threadManager->totalTaskCount() == pendingTaskMaxCount + workerCount))) {