diff options
author | Marc Laukien <marc@zeroc.com> | 2002-12-16 13:20:29 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-12-16 13:20:29 +0000 |
commit | 5e75e520d4080bcf13346de56509c84b4c4b90a6 (patch) | |
tree | 0b84a6497a6fa7888aa6fa2f406f86cb6c6b701d /cpp/src | |
parent | minor fixes (diff) | |
download | ice-5e75e520d4080bcf13346de56509c84b4c4b90a6.tar.bz2 ice-5e75e520d4080bcf13346de56509c84b4c4b90a6.tar.xz ice-5e75e520d4080bcf13346de56509c84b4c4b90a6.zip |
minor fixes
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 4 | ||||
-rw-r--r-- | cpp/src/Ice/ConnectionFactory.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp index 56c5aebca18..a665ebcefef 100644 --- a/cpp/src/Ice/Connection.cpp +++ b/cpp/src/Ice/Connection.cpp @@ -434,7 +434,7 @@ IceInternal::Connection::prepareBatchRequest(BasicStream* os) // // Give the batch stream to the caller, until finishBatchRequest() - // is called. + // or abortBatchRequest() is called. // _batchStream.swap(*os); } @@ -1072,6 +1072,8 @@ IceInternal::Connection::exception(const LocalException& ex) string IceInternal::Connection::toString() const { + IceUtil::Monitor<IceUtil::RecMutex>::Lock sync(*this); + assert(_transceiver); return _transceiver->toString(); } diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp index 1e79be144c1..628aad18371 100644 --- a/cpp/src/Ice/ConnectionFactory.cpp +++ b/cpp/src/Ice/ConnectionFactory.cpp @@ -507,6 +507,8 @@ IceInternal::IncomingConnectionFactory::exception(const LocalException&) string IceInternal::IncomingConnectionFactory::toString() const { + ::IceUtil::Monitor< ::IceUtil::Mutex>::Lock sync(*this); + if(_transceiver) { return _transceiver->toString(); |