summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/uuid/Client.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2017-05-02 13:58:41 -0400
committerJoe George <joe@zeroc.com>2017-05-02 15:42:34 -0400
commitcd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch)
tree5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/test/IceUtil/uuid/Client.cpp
parentRemoved trailing whitespace generated by slice2js (diff)
downloadice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip
Remove trailing whitespace
Diffstat (limited to 'cpp/test/IceUtil/uuid/Client.cpp')
-rw-r--r--cpp/test/IceUtil/uuid/Client.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/test/IceUtil/uuid/Client.cpp b/cpp/test/IceUtil/uuid/Client.cpp
index 411fc88e181..0a5ceae5537 100644
--- a/cpp/test/IceUtil/uuid/Client.cpp
+++ b/cpp/test/IceUtil/uuid/Client.cpp
@@ -53,9 +53,9 @@ inline void usage(const char* myName)
template<typename T, typename GenerateFunc> class InsertThread : public Thread
{
public:
-
+
typedef set<T> ItemSet;
-
+
InsertThread(int threadId, ItemSet& itemSet, GenerateFunc func, long howMany, bool verbose)
: _threadId(threadId), _itemSet(itemSet), _func(func), _howMany(howMany), _verbose(verbose)
{
@@ -79,7 +79,7 @@ public:
if(_verbose && i > 0 && (i % 100000 == 0))
{
- cout << "Thread " << _threadId << ": generated " << i << " UUIDs." << endl;
+ cout << "Thread " << _threadId << ": generated " << i << " UUIDs." << endl;
}
}
}
@@ -142,7 +142,7 @@ runTest(int threadCount, GenerateFunc func, long howMany, bool verbose, string n
cout << "s";
}
cout << "... ";
-
+
if(verbose)
{
cout << endl;
@@ -153,13 +153,13 @@ runTest(int threadCount, GenerateFunc func, long howMany, bool verbose, string n
}
set<T> itemSet;
-
+
vector<ThreadControl> threads;
Time start = Time::now();
for(int i = 0; i < threadCount; i++)
{
- ThreadPtr t = new InsertThread<T, GenerateFunc>(i, itemSet, func, howMany / threadCount, verbose);
+ ThreadPtr t = new InsertThread<T, GenerateFunc>(i, itemSet, func, howMany / threadCount, verbose);
threads.push_back(t->start());
}
for(vector<ThreadControl>::iterator p = threads.begin(); p != threads.end(); ++p)
@@ -172,9 +172,9 @@ runTest(int threadCount, GenerateFunc func, long howMany, bool verbose, string n
if(verbose)
{
- cout << "Each " << name << " took an average of "
- << (double) ((finish - start).toMicroSeconds()) / howMany
- << " micro seconds to generate and insert into a set."
+ cout << "Each " << name << " took an average of "
+ << (double) ((finish - start).toMicroSeconds()) / howMany
+ << " micro seconds to generate and insert into a set."
<< endl;
}
}