summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/MutexTest.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/thread/MutexTest.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/thread/MutexTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/MutexTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/test/IceUtil/thread/MutexTest.cpp b/cpp/test/IceUtil/thread/MutexTest.cpp
index 0b493e38524..d16d54e667d 100644
--- a/cpp/test/IceUtil/thread/MutexTest.cpp
+++ b/cpp/test/IceUtil/thread/MutexTest.cpp
@@ -20,7 +20,7 @@ static const string mutexTestName("mutex");
class MutexTestThread : public Thread
{
public:
-
+
MutexTestThread(Mutex& m) :
_mutex(m),
_tryLock(false)
@@ -28,7 +28,7 @@ public:
}
virtual void run()
- {
+ {
Mutex::TryLock tlock(_mutex);
test(!tlock.acquired());
@@ -79,7 +79,7 @@ MutexTest::run()
{
Mutex::Lock lock(mutex);
- // LockT testing:
+ // LockT testing:
//
test(lock.acquired());
@@ -117,7 +117,7 @@ MutexTest::run()
{
// Expected
}
-
+
Mutex::TryLock lock2(mutex);
try
{
@@ -128,7 +128,7 @@ MutexTest::run()
}
lock2.release();
test(lock.tryAcquire() == true);
- test(lock.acquired());
+ test(lock.acquired());
// Deadlock testing
//
@@ -140,7 +140,7 @@ MutexTest::run()
test(false);
}
catch(const ThreadLockedException&)
- {
+ {
// Expected
}
#endif
@@ -148,7 +148,7 @@ MutexTest::run()
// TEST: Start thread, try to acquire the mutex.
t = new MutexTestThread(mutex);
control = t->start();
-
+
// TEST: Wait until the tryLock has been tested.
t->waitTryLock();
}