aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/Task.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 15:08:38 +0000
committersaturneric <[email protected]>2024-01-12 15:08:38 +0000
commit6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch)
treefc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/core/thread/Task.cpp
parentfix: slove a heap-use-after-free issue (diff)
downloadGpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz
GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/core/thread/Task.cpp')
-rw-r--r--src/core/thread/Task.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/thread/Task.cpp b/src/core/thread/Task.cpp
index 459fb55a..ae6b6760 100644
--- a/src/core/thread/Task.cpp
+++ b/src/core/thread/Task.cpp
@@ -30,10 +30,6 @@
#include <qscopedpointer.h>
-#include <boost/stacktrace.hpp>
-#include <boost/uuid/uuid.hpp>
-#include <boost/uuid/uuid_generators.hpp>
-#include <boost/uuid/uuid_io.hpp>
#include <utility>
#include "utils/MemoryUtils.h"
@@ -154,9 +150,6 @@ class Task::Impl {
GF_CORE_LOG_TRACE("task {} was end.", GetFullID());
} catch (std::exception &e) {
GF_CORE_LOG_ERROR("exception was caught at task: {}", e.what());
- GF_CORE_LOG_ERROR(
- "stacktrace of the exception: {}",
- boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
}
// raise signal to anounce after runnable returned
if (parent_->autoDelete()) emit parent_->SignalTaskShouldEnd(rtn_);
@@ -248,18 +241,12 @@ class Task::Impl {
#ifdef RELEASE
} catch (std::exception &e) {
GF_CORE_LOG_ERROR("exception was caught at task callback: {}", e.what());
- GF_CORE_LOG_ERROR(
- "stacktrace of the exception: {}",
- boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
// raise signal, announcing this task comes to an end
GF_CORE_LOG_TRACE("for task {}, its life comes to an end at chaos.",
GetFullID());
emit parent_->SignalTaskEnd();
} catch (...) {
GF_CORE_LOG_ERROR("unknown exception was caught");
- GF_CORE_LOG_ERROR(
- "stacktrace of the exception: {}",
- boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
// raise signal, announcing this task comes to an end
GF_CORE_LOG_TRACE(
"for task {}, its life comes to an end at unknown chaos.",