diff options
author | Benoit Foucher <benoit@zeroc.com> | 2003-03-13 16:22:02 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2003-03-13 16:22:02 +0000 |
commit | a9adaad1a8ac7b2abc8fbc8dd92e6d17ed7fdc64 (patch) | |
tree | 1dc7cbf4f2d5fce90bc4cb61ad009b5c3a460b79 /cpp/test/IceUtil/thread/AliveTest.cpp | |
parent | Fix compilation problem on Win32 w/ VC++6 (diff) | |
download | ice-a9adaad1a8ac7b2abc8fbc8dd92e6d17ed7fdc64.tar.bz2 ice-a9adaad1a8ac7b2abc8fbc8dd92e6d17ed7fdc64.tar.xz ice-a9adaad1a8ac7b2abc8fbc8dd92e6d17ed7fdc64.zip |
Fixed the fix, wait wasn't called directly to avoid recursion... changed
wait to waitForSignal
Diffstat (limited to 'cpp/test/IceUtil/thread/AliveTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/AliveTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/IceUtil/thread/AliveTest.cpp b/cpp/test/IceUtil/thread/AliveTest.cpp index b0b69b61727..6757406b3cf 100644 --- a/cpp/test/IceUtil/thread/AliveTest.cpp +++ b/cpp/test/IceUtil/thread/AliveTest.cpp @@ -31,7 +31,7 @@ public: { } - void wait() + void waitForSignal() { IceUtil::Monitor<IceUtil::Mutex>::Lock lock(*this); while (!_done) @@ -64,7 +64,7 @@ public: try { _childCreated.signal(); - _parentReady.wait(); + _parentReady.waitForSignal(); } catch(IceUtil::ThreadLockedException &) { @@ -94,7 +94,7 @@ AliveTest::run() CondVar parentReady; AliveTestThreadPtr t = new AliveTestThread(childCreated, parentReady); IceUtil::ThreadControl c = t->start(); - childCreated.wait(); + childCreated.waitForSignal(); test(c.isAlive()); parentReady.signal(); c.join(); |