diff options
author | Marc Laukien <marc@zeroc.com> | 2006-03-01 17:51:32 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2006-03-01 17:51:32 +0000 |
commit | a7ba28e00593ce70b2a45887a0bdabf5d9bb5685 (patch) | |
tree | 5deb2c50b6cfd60e645621c9197e8417e0e20f83 /cpp/src/Ice/ConnectionI.cpp | |
parent | fix (diff) | |
download | ice-a7ba28e00593ce70b2a45887a0bdabf5d9bb5685.tar.bz2 ice-a7ba28e00593ce70b2a45887a0bdabf5d9bb5685.tar.xz ice-a7ba28e00593ce70b2a45887a0bdabf5d9bb5685.zip |
fix
Diffstat (limited to 'cpp/src/Ice/ConnectionI.cpp')
-rw-r--r-- | cpp/src/Ice/ConnectionI.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp index 91c97d3ddc5..6ad509be2b0 100644 --- a/cpp/src/Ice/ConnectionI.cpp +++ b/cpp/src/Ice/ConnectionI.cpp @@ -337,6 +337,18 @@ Ice::ConnectionI::isFinished() const } void +Ice::ConnectionI::throwException() const +{ + IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); + + if(_exception.get()) + { + assert(_state >= StateClosing); + _exception->ice_throw(); + } +} + +void Ice::ConnectionI::waitUntilHolding() const { IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); |