summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/RWRecMutexTest.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-04-24 16:43:00 +0000
committerBernard Normier <bernard@zeroc.com>2003-04-24 16:43:00 +0000
commit38799e58ddb78e9ada2c63694bbf54b6746f71bf (patch)
tree40ea71b972895ad06ff92b5631bc4a73bac788f6 /cpp/test/IceUtil/thread/RWRecMutexTest.cpp
parentoverride Ice.Default.Locator to avoid iceboxadmin error message (diff)
downloadice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.bz2
ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.xz
ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.zip
Eliminated numerous warnings from Sun C++ 5.4 builds
Diffstat (limited to 'cpp/test/IceUtil/thread/RWRecMutexTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/RWRecMutexTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/IceUtil/thread/RWRecMutexTest.cpp b/cpp/test/IceUtil/thread/RWRecMutexTest.cpp
index 916f0fa3fa4..9376c3313fc 100644
--- a/cpp/test/IceUtil/thread/RWRecMutexTest.cpp
+++ b/cpp/test/IceUtil/thread/RWRecMutexTest.cpp
@@ -490,11 +490,11 @@ RWRecMutexTest::run()
// TEST: Lock upgrading. This time a reader thread is started
// first.
{
- RWRecMutexUpgradeReadThreadPtr t = new RWRecMutexUpgradeReadThread(mutex);
- control = t->start();
+ RWRecMutexUpgradeReadThreadPtr t1 = new RWRecMutexUpgradeReadThread(mutex);
+ control = t1->start();
// Wait for the thread to acquire the read lock.
- t->waitLock();
+ t1->waitLock();
// Spawn a thread to try acquiring the lock
RWRecMutexUpgradeTestThreadPtr t2 = new RWRecMutexUpgradeTestThread(mutex);
@@ -528,7 +528,7 @@ RWRecMutexTest::run()
// Once the read lock is released then the upgrade should
// succeed & the thread should terminate.
//
- t->signalUnlock();
+ t1->signalUnlock();
control2.join();
control.join();