diff options
author | Marc Laukien <marc@zeroc.com> | 2004-01-23 17:07:18 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-01-23 17:07:18 +0000 |
commit | 19f638094baa01b7a776cad39345aef167ff7f3e (patch) | |
tree | 818afb5e0101c0b1dd10c693d5fe20081f5118f1 /cpp/src/slice2java/Gen.cpp | |
parent | for Matthew (diff) | |
download | ice-19f638094baa01b7a776cad39345aef167ff7f3e.tar.bz2 ice-19f638094baa01b7a776cad39345aef167ff7f3e.tar.xz ice-19f638094baa01b7a776cad39345aef167ff7f3e.zip |
added sendMutex
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index c53054edddd..8de02feb5ac 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -2349,10 +2349,8 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out << sb; out << nl << "try"; out << sb; - if(op->returnsData()) - { - out << nl << "__checkTwowayOnly(\"" << opName << "\");"; - } + // Async requests may only be sent twoway. + out << nl << "__checkTwowayOnly(\"" << opName << "\");"; out << nl << "Ice._ObjectDel __delBase = __getDelegate();"; out << nl << '_' << name << "Del __del = (_" << name << "Del)__delBase;"; |