diff options
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) { |