diff options
author | ZeroC Staff <git@zeroc.com> | 2007-12-12 21:01:52 -0500 |
---|---|---|
committer | ZeroC Staff <git@zeroc.com> | 2007-12-12 21:01:52 -0500 |
commit | 883a047970693d63716aade9bd94f38c75012c7c (patch) | |
tree | 28f414393cc199bd852d618bcaf4702dd380759b /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed VC build (diff) | |
parent | Fixed bug 2592 (diff) | |
download | ice-883a047970693d63716aade9bd94f38c75012c7c.tar.bz2 ice-883a047970693d63716aade9bd94f38c75012c7c.tar.xz ice-883a047970693d63716aade9bd94f38c75012c7c.zip |
Merge branch 'master' of bernard@cvs.zeroc.com:/home/git/ice
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2cpp/Gen.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 7179373716e..d8dcf403ef7 100755 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -5215,6 +5215,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << sp << nl << "void" << nl << classScopedAMI.substr(2) << '_' << name << "::__invoke" << spar << paramsDeclInvoke << epar; C << sb; + C << nl << "__acquire(__prx);"; C << nl << "try"; C << sb; if(p->returnsData()) @@ -5228,13 +5229,12 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "__os->writePendingObjects();"; } C << nl << "__os->endWriteEncaps();"; + C << nl << "__send();"; C << eb; C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; - C << nl << "__finished(__ex);"; - C << nl << "return;"; + C << nl << "__release(__ex);"; C << eb; - C << nl << "__send();"; C << eb; C << sp << nl << "void" << nl << classScopedAMI.substr(2) << '_' << name << "::__response(bool __ok)"; @@ -5265,14 +5265,14 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) string scoped = (*i)->scoped(); C << nl << "catch(const " << fixKwd((*i)->scoped()) << "& __ex)"; C << sb; - C << nl << "ice_exception(__ex);"; - C << nl << "return;"; + C << nl << "__exception(__ex);"; C << eb; } C << nl << "catch(const ::Ice::UserException& __ex)"; C << sb; C << nl << "throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());"; C << eb; + C << nl << "return;"; C << eb; writeUnmarshalCode(C, outParams, 0, StringList(), true); @@ -5291,6 +5291,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "return;"; C << eb; C << nl << "ice_response" << spar << args << epar << ';'; + C << nl << "__release();"; C << eb; } |