diff options
author | Dan Vrátil <dvratil@redhat.com> | 2015-04-11 11:44:49 +0200 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2015-04-11 11:44:49 +0200 |
commit | 73b8fe58c6fb985898d2bbf431926f0628e2b0a9 (patch) | |
tree | 5500fbfcca6ccc12cb744dd18c3f790e94f5fc9c /async/src/async.cpp | |
parent | 8d5f4e8485db0bfc0745a9852bac9eceab3b769f (diff) | |
download | sink-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.cpp | 6 |
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 | |||
25 | using namespace Async; | 24 | using namespace Async; |
26 | 25 | ||
27 | Private::Execution::Execution(const Private::ExecutorBasePtr &executor) | 26 | Private::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 | ||
50 | void Private::Execution::releaseFuture() | 54 | void Private::Execution::releaseFuture() |