diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-06-03 19:32:20 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-06-03 19:32:20 -0700 |
commit | 3d649bed4328992f41f567136025f58a019a5159 (patch) | |
tree | 470be901fbbfe5c6cd4269884412b0d36b48dc92 /cppe/test/IceE/thread/AliveTest.cpp | |
parent | local interface fixes for slice2javae (diff) | |
download | ice-3d649bed4328992f41f567136025f58a019a5159.tar.bz2 ice-3d649bed4328992f41f567136025f58a019a5159.tar.xz ice-3d649bed4328992f41f567136025f58a019a5159.zip |
Various Ice-E fixes:
- Bug fix in slice2javae for local interfaces/classes
- Added Ice.LocalObjectHolder
- Reviewed Java/C++ demos and aligned with Ice
- Source code clean up (removed tabs, etc.)
Diffstat (limited to 'cppe/test/IceE/thread/AliveTest.cpp')
-rw-r--r-- | cppe/test/IceE/thread/AliveTest.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/cppe/test/IceE/thread/AliveTest.cpp b/cppe/test/IceE/thread/AliveTest.cpp index 8961b07157f..eda4e37e7a6 100644 --- a/cppe/test/IceE/thread/AliveTest.cpp +++ b/cppe/test/IceE/thread/AliveTest.cpp @@ -21,24 +21,24 @@ class CondVar : public IceUtil::Monitor<IceUtil::RecMutex> public: CondVar() : - _done(false) + _done(false) { } void waitForSignal() { - IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this); - while(!_done) - { - wait(); - } + IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this); + while(!_done) + { + wait(); + } } void signal() { - IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this); - _done = true; - notify(); + IceUtil::Monitor<IceUtil::RecMutex>::Lock lock(*this); + _done = true; + notify(); } private: @@ -51,20 +51,20 @@ class AliveTestThread : public Thread public: AliveTestThread(CondVar& childCreated, CondVar& parentReady) : - _childCreated(childCreated), _parentReady(parentReady) + _childCreated(childCreated), _parentReady(parentReady) { } virtual void run() { - try - { - _childCreated.signal(); - _parentReady.waitForSignal(); - } - catch(IceUtil::ThreadLockedException &) - { - } + try + { + _childCreated.signal(); + _parentReady.waitForSignal(); + } + catch(IceUtil::ThreadLockedException &) + { + } } private: |