summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/RecMutexTest.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/RecMutexTest.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/RecMutexTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/RecMutexTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/test/IceUtil/thread/RecMutexTest.cpp b/cpp/test/IceUtil/thread/RecMutexTest.cpp
index d28a60074fd..bf0cb09014a 100644
--- a/cpp/test/IceUtil/thread/RecMutexTest.cpp
+++ b/cpp/test/IceUtil/thread/RecMutexTest.cpp
@@ -20,7 +20,7 @@ static const string recMutexTestName("recursive mutex");
class RecMutexTestThread : public Thread
{
public:
-
+
RecMutexTestThread(RecMutex& m) :
_mutex(m),
_tryLock(false)
@@ -29,10 +29,10 @@ public:
virtual void run()
{
-
+
RecMutex::TryLock tlock(_mutex);
test(!tlock.acquired());
-
+
{
Mutex::Lock lock(_tryLockMutex);
_tryLock = true;
@@ -79,21 +79,21 @@ RecMutexTest::run()
{
RecMutex::Lock lock(mutex);
-
+
// TEST: lock twice
RecMutex::Lock lock2(mutex);
// TEST: TryLock
RecMutex::TryLock lock3(mutex);
test(lock3.acquired());
-
+
// TEST: Start thread, try to acquire the mutex.
t = new RecMutexTestThread(mutex);
control = t->start();
-
+
// TEST: Wait until the tryLock has been tested.
t->waitTryLock();
-
+
}
//
@@ -102,5 +102,5 @@ RecMutexTest::run()
//
control.join();
-
+
}