diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-12-15 14:32:47 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-12-15 14:32:47 +0000 |
commit | 31abdd9f614f38a3b52fadf0a6121a11c50fd064 (patch) | |
tree | e696781ce3e7d6537e8e55f0b46f3deef1aca22b /cppe/src/IceE/Outgoing.cpp | |
parent | Only removed Monitor for pure blocking for now (diff) | |
download | ice-31abdd9f614f38a3b52fadf0a6121a11c50fd064.tar.bz2 ice-31abdd9f614f38a3b52fadf0a6121a11c50fd064.tar.xz ice-31abdd9f614f38a3b52fadf0a6121a11c50fd064.zip |
Some cleanup to make code prettier
Diffstat (limited to 'cppe/src/IceE/Outgoing.cpp')
-rw-r--r-- | cppe/src/IceE/Outgoing.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cppe/src/IceE/Outgoing.cpp b/cppe/src/IceE/Outgoing.cpp index e2222b71ca0..b8a0c0f5deb 100644 --- a/cppe/src/IceE/Outgoing.cpp +++ b/cppe/src/IceE/Outgoing.cpp @@ -126,7 +126,7 @@ IceInternal::Outgoing::invoke() // this object, so we don't need to lock the mutex, keep // track of state, or save exceptions. // - _connection->sendRequest(&_os, 0, this); + _connection->sendRequest(&_os, this); // // Wait until the request has completed, or until the @@ -200,7 +200,7 @@ IceInternal::Outgoing::invoke() // For blocking sends the reply is written directly // into the incoming stream. // - _connection->sendRequest(&_os, &_is, this); + _connection->sendBlockingRequest(&_os, &_is, this); if(!_exception.get()) { finishedInternal(); @@ -254,7 +254,11 @@ IceInternal::Outgoing::invoke() // violating "at-most-once". // _state = StateInProgress; - _connection->sendRequest(&_os, 0, 0); +#ifdef ICEE_BLOCKING_CLIENT + _connection->sendBlockingRequest(&_os, 0, 0); +#else + _connection->sendRequest(&_os, 0); +#endif break; } @@ -496,6 +500,9 @@ IceInternal::Outgoing::finished(const LocalException& ex) _state = StateLocalException; _exception.reset(dynamic_cast<LocalException*>(ex.ice_clone())); #ifndef ICEE_PURE_BLOCKING_CLIENT - notify(); + if(!_connection->blocking()) + { + notify(); + } #endif } |