summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-01-23 17:07:18 +0000
committerMarc Laukien <marc@zeroc.com>2004-01-23 17:07:18 +0000
commit19f638094baa01b7a776cad39345aef167ff7f3e (patch)
tree818afb5e0101c0b1dd10c693d5fe20081f5118f1 /cpp/src/slice2cpp/Gen.cpp
parentfor Matthew (diff)
downloadice-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.cpp6
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());";