diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-11-05 15:33:01 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-11-05 15:33:01 +0100 |
commit | cb4d5772e9a7a9228577df83027e45ec7de022ea (patch) | |
tree | bd6489fe77ed5fba43adff613293d580fda8e0f3 /cpp/test/Ice/operations/TestAMDI.cpp | |
parent | Fixed src tree build of IceJS (diff) | |
download | ice-cb4d5772e9a7a9228577df83027e45ec7de022ea.tar.bz2 ice-cb4d5772e9a7a9228577df83027e45ec7de022ea.tar.xz ice-cb4d5772e9a7a9228577df83027e45ec7de022ea.zip |
Fixed ICE-5607: relaxed Ice.MessageSizeMax
Diffstat (limited to 'cpp/test/Ice/operations/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/operations/TestAMDI.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/TestAMDI.cpp b/cpp/test/Ice/operations/TestAMDI.cpp index ce242444937..e794f3c384d 100644 --- a/cpp/test/Ice/operations/TestAMDI.cpp +++ b/cpp/test/Ice/operations/TestAMDI.cpp @@ -32,6 +32,10 @@ private: const Test::AMD_MyClass_opVoidPtr _cb; }; +MyDerivedClassI::MyDerivedClassI() : _opByteSOnewayCallCount(0) +{ +} + bool MyDerivedClassI::ice_isA(const std::string& id, const Ice::Current& current) const { @@ -637,10 +641,21 @@ void MyDerivedClassI::opByteSOneway_async(const Test::AMD_MyClass_opByteSOnewayPtr& cb, const Test::ByteS&, const Ice::Current&) { + IceUtil::Mutex::Lock sync(_mutex); + ++_opByteSOnewayCallCount; cb->ice_response(); } void +MyDerivedClassI::opByteSOnewayCallCount_async(const Test::AMD_MyClass_opByteSOnewayCallCountPtr& cb, + const Ice::Current&) +{ + IceUtil::Mutex::Lock sync(_mutex); + cb->ice_response(_opByteSOnewayCallCount); + _opByteSOnewayCallCount = 0; +} + +void MyDerivedClassI::opContext_async(const Test::AMD_MyClass_opContextPtr& cb, const Ice::Current& c) { Test::StringStringD r = c.ctx; |