juicy compiler error
This commit is contained in:
+4
-6
@@ -1,14 +1,12 @@
|
||||
#ifndef ASYNCEXEC_H
|
||||
#define ASYNCEXEC_H
|
||||
|
||||
#include "QThreadPool"
|
||||
#include "QRunnable"
|
||||
#include "QThreadPool"
|
||||
#include "lambdaqrunnable.h"
|
||||
#include "qcoreapplication.h"
|
||||
|
||||
#define async_start QThreadPool::globalInstance()->start(new LambdaQRunnable(
|
||||
#define async_end ));
|
||||
#define async_exec(a) QThreadPool::globalInstance()->start(new LambdaQRunnable([]{ a; }));
|
||||
#define async_exec(a) \
|
||||
QThreadPool::globalInstance()->start(new LambdaQRunnable(a));
|
||||
|
||||
|
||||
#endif // ASYNCEXEC_H
|
||||
#endif // ASYNCEXEC_H
|
||||
|
||||
Reference in New Issue
Block a user