diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-10-22 16:33:13 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-10-22 16:33:13 +0200 |
commit | d8da15a2d803da81b76568d0c8f620f8ed26d0fa (patch) | |
tree | f193067905624d61e0e8a3e6cd7d2498b9bf1873 /cpp/src/Ice/Instance.cpp | |
parent | Fixed demo dist to allow gradle build of java demos (diff) | |
download | ice-d8da15a2d803da81b76568d0c8f620f8ed26d0fa.tar.bz2 ice-d8da15a2d803da81b76568d0c8f620f8ed26d0fa.tar.xz ice-d8da15a2d803da81b76568d0c8f620f8ed26d0fa.zip |
Fixed ICE-3490: guarantee invocation serialization for proxies which are equal
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index d45c0b9e758..261cecf46d3 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -29,6 +29,7 @@ #include <Ice/Network.h> #include <Ice/NetworkProxy.h> #include <Ice/EndpointFactoryManager.h> +#include <Ice/RequestHandlerFactory.h> #include <Ice/RetryQueue.h> #include <Ice/DynamicLibrary.h> #include <Ice/PluginManagerI.h> @@ -349,6 +350,20 @@ IceInternal::Instance::referenceFactory() const return _referenceFactory; } +RequestHandlerFactoryPtr +IceInternal::Instance::requestHandlerFactory() const +{ + IceUtil::RecMutex::Lock sync(*this); + + if(_state == StateDestroyed) + { + throw CommunicatorDestroyedException(__FILE__, __LINE__); + } + + assert(_requestHandlerFactory); + return _requestHandlerFactory; +} + ProxyFactoryPtr IceInternal::Instance::proxyFactory() const { @@ -1269,7 +1284,9 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi _locatorManager = new LocatorManager(_initData.properties); _referenceFactory = new ReferenceFactory(this, communicator); - + + _requestHandlerFactory = new RequestHandlerFactory(this); + _proxyFactory = new ProxyFactory(this); bool ipv4 = _initData.properties->getPropertyAsIntWithDefault("Ice.IPv4", 1) > 0; @@ -1714,6 +1731,8 @@ IceInternal::Instance::destroy() //_referenceFactory->destroy(); // No destroy function defined. _referenceFactory = 0; + + _requestHandlerFactory = 0; // _proxyFactory->destroy(); // No destroy function defined. _proxyFactory = 0; |