aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/workthreadpool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/workthreadpool.cpp')
-rw-r--r--src/zencore/workthreadpool.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/zencore/workthreadpool.cpp b/src/zencore/workthreadpool.cpp
index 16b2310ff..f41c13bf6 100644
--- a/src/zencore/workthreadpool.cpp
+++ b/src/zencore/workthreadpool.cpp
@@ -186,7 +186,13 @@ WorkerThreadPool::Impl::WorkerThreadFunction(ThreadStartInfo Info)
ZEN_TRACE_CPU_FLUSH("AsyncWork");
Work->Execute();
}
- catch (std::exception& e)
+ catch (const AssertException& Ex)
+ {
+ Work->m_Exception = std::current_exception();
+
+ ZEN_WARN("Assert exception in worker thread: {}", Ex.FullDescription());
+ }
+ catch (const std::exception& e)
{
Work->m_Exception = std::current_exception();
@@ -234,7 +240,13 @@ WorkerThreadPool::ScheduleWork(Ref<IWork> Work)
ZEN_TRACE_CPU_FLUSH("SyncWork");
Work->Execute();
}
- catch (std::exception& e)
+ catch (const AssertException& Ex)
+ {
+ Work->m_Exception = std::current_exception();
+
+ ZEN_WARN("Assert exception in worker thread: {}", Ex.FullDescription());
+ }
+ catch (const std::exception& e)
{
Work->m_Exception = std::current_exception();