From 777229f28f8f5de19376459e85b434576af8e010 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 31 Jul 2020 09:56:19 -0400 Subject: added startSafeThread() to get core dumps for threads other than the main thread added terminate handler --- src/iconfetcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/iconfetcher.cpp') diff --git a/src/iconfetcher.cpp b/src/iconfetcher.cpp index 129be50e..c10adc8d 100644 --- a/src/iconfetcher.cpp +++ b/src/iconfetcher.cpp @@ -1,4 +1,5 @@ #include "iconfetcher.h" +#include "thread_utils.h" #include "shared/util.h" void IconFetcher::Waiter::wait() @@ -25,7 +26,7 @@ IconFetcher::IconFetcher() m_quickCache.file = getPixmapIcon(QFileIconProvider::File); m_quickCache.directory = getPixmapIcon(QFileIconProvider::Folder); - m_thread = std::thread([&]{ threadFun(); }); + m_thread = MOShared::startSafeThread([&]{ threadFun(); }); } IconFetcher::~IconFetcher() -- cgit v1.3.1