summaryrefslogtreecommitdiff
path: root/src/iconfetcher.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:56:19 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:56:19 -0400
commit777229f28f8f5de19376459e85b434576af8e010 (patch)
tree0f4e5bb10dddce18aa49c9f78c34a98e575b5b6c /src/iconfetcher.cpp
parent2eeaa0e31a0d74ccd7cada9e478db27263ce4532 (diff)
added startSafeThread() to get core dumps for threads other than the main thread
added terminate handler
Diffstat (limited to 'src/iconfetcher.cpp')
-rw-r--r--src/iconfetcher.cpp3
1 files changed, 2 insertions, 1 deletions
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()