SkyPulse UAV
V0.1
Loading...
Searching...
No Matches
SkyPulseUAV_FCS
TOOLS
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
10
class
ThreadPool
:
public
QObject,
public
QRunnable {
11
Q_OBJECT
12
13
public
:
14
explicit
ThreadPool
(std::function<
void
()> func);
15
void
run
()
override
;
16
17
18
signals:
19
void
isDone
();
20
21
22
private
:
23
std::function<void()> taskFunction;
24
25
26
};
27
28
#endif
// THREADPOOL_H
ThreadPool
Definition
threadpool.h:10
ThreadPool::isDone
void isDone()
ThreadPool::run
void run() override
Definition
threadpool.cpp:9
ThreadPool::ThreadPool
ThreadPool(std::function< void()> func)
Definition
threadpool.cpp:3
Generated by
1.10.0