summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/thread/AliveTest.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-11 16:41:12 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-11 16:41:12 +0000
commit8ff7c2608eb845c3b6b637f4648ae726a11a158b (patch)
treef1dfb4d3a63752357480561fdd94f37692d8eb47 /cppe/test/IceE/thread/AliveTest.cpp
parentfix some recent changes to build in J2ME (diff)
downloadice-8ff7c2608eb845c3b6b637f4648ae726a11a158b.tar.bz2
ice-8ff7c2608eb845c3b6b637f4648ae726a11a158b.tar.xz
ice-8ff7c2608eb845c3b6b637f4648ae726a11a158b.zip
Put back IceUtil namespace
Diffstat (limited to 'cppe/test/IceE/thread/AliveTest.cpp')
-rw-r--r--cppe/test/IceE/thread/AliveTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cppe/test/IceE/thread/AliveTest.cpp b/cppe/test/IceE/thread/AliveTest.cpp
index 15a878e3a36..0c3840ab4b4 100644
--- a/cppe/test/IceE/thread/AliveTest.cpp
+++ b/cppe/test/IceE/thread/AliveTest.cpp
@@ -12,11 +12,11 @@
#include <TestCommon.h>
using namespace std;
-using namespace Ice;
+using namespace IceUtil;
static const string createTestName("thread alive");
-class CondVar : public Ice::Monitor<Ice::RecMutex>
+class CondVar : public IceUtil::Monitor<IceUtil::RecMutex>
{
public:
@@ -27,7 +27,7 @@ public:
void waitForSignal()
{
- Ice::Monitor<Ice::RecMutex>::Lock lock(*this);
+ IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this);
while(!_done)
{
wait();
@@ -36,7 +36,7 @@ public:
void signal()
{
- Ice::Monitor<Ice::RecMutex>::Lock lock(*this);
+ IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this);
_done = true;
notify();
}
@@ -62,7 +62,7 @@ public:
_childCreated.signal();
_parentReady.waitForSignal();
}
- catch(Ice::ThreadLockedException &)
+ catch(IceUtil::ThreadLockedException &)
{
}
}
@@ -90,7 +90,7 @@ AliveTest::run()
CondVar childCreated;
CondVar parentReady;
AliveTestThreadPtr t = new AliveTestThread(childCreated, parentReady);
- Ice::ThreadControl c = t->start();
+ IceUtil::ThreadControl c = t->start();
childCreated.waitForSignal();
test(c.isAlive());
parentReady.signal();