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/slice2cpp/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/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index b2b7074b082..55728f17ef1 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1264,10 +1264,8 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << sb; C << nl << "try"; C << sb; - if(p->returnsData()) - { - C << nl << "__checkTwowayOnly(\"" << p->name() << "\");"; - } + // Async requests may only be sent twoway. + C << nl << "__checkTwowayOnly(\"" << p->name() << "\");"; C << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase = __getDelegate();"; C << nl << "::IceDelegate" << thisPointer << " __del = dynamic_cast< ::IceDelegate" << thisPointer << ">(__delBase.get());"; |