summaryrefslogtreecommitdiffstats
path: root/async/src/async.cpp
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2015-04-11 11:44:49 +0200
committerDan Vrátil <dvratil@redhat.com>2015-04-11 11:44:49 +0200
commit73b8fe58c6fb985898d2bbf431926f0628e2b0a9 (patch)
tree5500fbfcca6ccc12cb744dd18c3f790e94f5fc9c /async/src/async.cpp
parent8d5f4e8485db0bfc0745a9852bac9eceab3b769f (diff)
downloadsink-73b8fe58c6fb985898d2bbf431926f0628e2b0a9.tar.gz
sink-73b8fe58c6fb985898d2bbf431926f0628e2b0a9.zip
Async: add runtime executor tracing for easier debugging
Diffstat (limited to 'async/src/async.cpp')
-rw-r--r--async/src/async.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/async/src/async.cpp b/async/src/async.cpp
index 6f28084..e92d333 100644
--- a/async/src/async.cpp
+++ b/async/src/async.cpp
@@ -21,7 +21,6 @@
21#include <QDebug> 21#include <QDebug>
22#include <QEventLoop> 22#include <QEventLoop>
23 23
24
25using namespace Async; 24using namespace Async;
26 25
27Private::Execution::Execution(const Private::ExecutorBasePtr &executor) 26Private::Execution::Execution(const Private::ExecutorBasePtr &executor)
@@ -45,6 +44,11 @@ void Private::Execution::setFinished()
45{ 44{
46 isFinished = true; 45 isFinished = true;
47 //executor.clear(); 46 //executor.clear();
47#ifndef QT_NO_DEBUG
48 if (tracer) {
49 delete tracer;
50 }
51#endif
48} 52}
49 53
50void Private::Execution::releaseFuture() 54void Private::Execution::releaseFuture()