diff options
author | Jose <jose@zeroc.com> | 2018-07-26 13:11:27 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-07-26 13:11:27 +0200 |
commit | 53f1558de4117dbd24c56f379e7065c3e3782906 (patch) | |
tree | a5553d321da6003b3212f151ff05244ad1e3ffe7 /cpp/src/Ice/Instance.cpp | |
parent | OpenSSLEngine fix openssl cleanup (diff) | |
download | ice-53f1558de4117dbd24c56f379e7065c3e3782906.tar.bz2 ice-53f1558de4117dbd24c56f379e7065c3e3782906.tar.xz ice-53f1558de4117dbd24c56f379e7065c3e3782906.zip |
Simplify EndpointHostResolver initialization
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index 11002a1d787..1f84b0fe832 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -1453,6 +1453,16 @@ IceInternal::Instance::finishSetup(int& argc, const char* argv[], const Ice::Com try { _endpointHostResolver = new EndpointHostResolver(this); + bool hasPriority = _initData.properties->getProperty("Ice.ThreadPriority") != ""; + int priority = _initData.properties->getPropertyAsInt("Ice.ThreadPriority"); + if(hasPriority) + { + _endpointHostResolver->start(0, priority); + } + else + { + _endpointHostResolver->start(); + } } catch(const IceUtil::Exception& ex) { |