summaryrefslogtreecommitdiff
path: root/glib/glibmm/threadpool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'glib/glibmm/threadpool.cc')
-rw-r--r--glib/glibmm/threadpool.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/glibmm/threadpool.cc b/glib/glibmm/threadpool.cc
index db9b089c..556eeb72 100644
--- a/glib/glibmm/threadpool.cc
+++ b/glib/glibmm/threadpool.cc
@@ -100,14 +100,17 @@ namespace
static void call_thread_entry_slot(void* data, void* user_data)
{
+ #ifdef GLIBMM_EXCEPTIONS_ENABLED
try
{
+ #endif //GLIBMM_EXCEPTIONS_ENABLED
Glib::ThreadPool::SlotList *const slot_list =
static_cast<Glib::ThreadPool::SlotList*>(user_data);
sigc::slot<void> slot (slot_list->pop(static_cast<sigc::slot<void>*>(data)));
slot();
+ #ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(Glib::Thread::Exit&)
{
@@ -118,6 +121,7 @@ static void call_thread_entry_slot(void* data, void* user_data)
{
Glib::exception_handlers_invoke();
}
+ #endif //GLIBMM_EXCEPTIONS_ENABLED
}
} // anonymous namespace