summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-07-25 17:47:36 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-07-25 17:47:36 +0200
commite548dd63ec00b52e8d0f280b7a823516b8f61470 (patch)
treed3960c6fb761b135a4a6ad6cb991c1fa6f4d67f5 /cpp/src/Ice/ThreadPool.cpp
parentImproved IceGrid discovery, it now works with icegrid registry slaves and nodes (diff)
downloadice-e548dd63ec00b52e8d0f280b7a823516b8f61470.tar.bz2
ice-e548dd63ec00b52e8d0f280b7a823516b8f61470.tar.xz
ice-e548dd63ec00b52e8d0f280b7a823516b8f61470.zip
Fixed ICE-5595: Catch C++ exceptions by const reference
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 593191c3034..cecbd78d868 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -699,7 +699,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread)
{
current._handler->message(current);
}
- catch(ThreadPoolDestroyedException&)
+ catch(const ThreadPoolDestroyedException&)
{
return;
}
@@ -721,7 +721,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread)
{
_selector.select(handlers, _serverIdleTime);
}
- catch(SelectorTimeoutException&)
+ catch(const SelectorTimeoutException&)
{
Lock sync(*this);
if(!_destroyed && _inUse == 0)
@@ -954,7 +954,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread)
assert(current._handler);
current._handler->message(current);
}
- catch(ThreadPoolDestroyedException&)
+ catch(const ThreadPoolDestroyedException&)
{
return;
}