diff options
author | Joe George <joe@zeroc.com> | 2017-05-02 13:58:41 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2017-05-02 15:42:34 -0400 |
commit | cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch) | |
tree | 5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/test/IceUtil/thread/MonitorMutexTest.cpp | |
parent | Removed trailing whitespace generated by slice2js (diff) | |
download | ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2 ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip |
Remove trailing whitespace
Diffstat (limited to 'cpp/test/IceUtil/thread/MonitorMutexTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/MonitorMutexTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp index 0ff96dd405f..d6b1db94864 100644 --- a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp +++ b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp @@ -18,7 +18,7 @@ using namespace IceUtil; class MonitorMutexTestThread : public Thread { public: - + MonitorMutexTestThread(Monitor<Mutex>& m) : _monitor(m), _tryLock(false) @@ -29,7 +29,7 @@ public: { Monitor<Mutex>::TryLock tlock(_monitor); test(!tlock.acquired()); - + { Mutex::Lock lock(_tryLockMutex); _tryLock = true; @@ -65,7 +65,7 @@ typedef Handle<MonitorMutexTestThread> MonitorMutexTestThreadPtr; class MonitorMutexTestThread2 : public Thread { public: - + MonitorMutexTestThread2(Monitor<Mutex>& monitor) : finished(false), _monitor(monitor) @@ -107,7 +107,7 @@ MonitorMutexTest::run() { Monitor<Mutex>::Lock lock(monitor); - + try { Monitor<Mutex>::TryLock tlock(monitor); @@ -124,7 +124,7 @@ MonitorMutexTest::run() // TEST: Start thread, try to acquire the mutex. t = new MonitorMutexTestThread(monitor); control = t->start(); - + // TEST: Wait until the tryLock has been tested. t->waitTryLock(); } @@ -143,7 +143,7 @@ MonitorMutexTest::run() // Give the thread time to start waiting. ThreadControl::sleep(Time::seconds(1)); - + { Monitor<Mutex>::Lock lock(monitor); monitor.notify(); |