SkyPulse UAV V0.1
Loading...
Searching...
No Matches
threadpool.h
Go to the documentation of this file.
1#ifndef THREADPOOL_H
2#define THREADPOOL_H
3
4#include <QObject>
5#include <QRunnable>
6#include <QDebug>
7#include <functional>
8
9
10class ThreadPool : public QObject, public QRunnable {
11 Q_OBJECT
12
13public:
14 explicit ThreadPool(std::function<void()> func);
15 void run() override;
16
17
18signals:
19 void isDone();
20
21
22private:
23 std::function<void()> taskFunction;
24
25
26};
27
28#endif // THREADPOOL_H
Definition threadpool.h:10
void isDone()
void run() override
Definition threadpool.cpp:9
ThreadPool(std::function< void()> func)
Definition threadpool.cpp:3