code format & class prefix
This commit is contained in:
16
doric-Qt/doric/async/DoricAsyncCall.h
Normal file
16
doric-Qt/doric/async/DoricAsyncCall.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef ASYNC_CALL_H
|
||||
#define ASYNC_CALL_H
|
||||
|
||||
#include <QThreadPool>
|
||||
#include <QtConcurrent/QtConcurrent>
|
||||
|
||||
class DoricAsyncCall {
|
||||
|
||||
public:
|
||||
static void ensureRunInThreadPool(QThreadPool *threadPool,
|
||||
std::function<void()> lambda) {
|
||||
QtConcurrent::run(threadPool, lambda);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // ASYNC_CALL_H
|
||||
Reference in New Issue
Block a user