summaryrefslogtreecommitdiffstats
path: root/common/clientapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 29b7e68..b732205 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -37,26 +37,6 @@
37#include "modelresult.h" 37#include "modelresult.h"
38#include "log.h" 38#include "log.h"
39 39
40#define ASYNCINTHREAD
41
42namespace async
43{
44 static void run(const std::function<void()> &runner) {
45 auto timer = new QTimer();
46 timer->setSingleShot(true);
47 QObject::connect(timer, &QTimer::timeout, [runner, timer]() {
48 delete timer;
49#ifndef ASYNCINTHREAD
50 runner();
51#else
52 QtConcurrent::run(runner);
53#endif
54 });
55 timer->start(0);
56 };
57} // namespace async
58
59
60namespace Akonadi2 40namespace Akonadi2
61{ 41{
62 42