SkyPulse UAV
V0.1
Loading...
Searching...
No Matches
SkyPulseUAV_Device
include
CppThread.hpp
Go to the documentation of this file.
1
#ifndef __CPP_THREAD_H_
2
#define __CPP_THREAD_H_
3
11
#include <thread>
12
20
class
CppThread
{
21
22
public
:
26
inline
void
start
() {
27
uthread = std::thread(&
CppThread::run
,
this
);
28
}
29
33
inline
void
join
() {
34
uthread.join();
35
}
36
37
protected
:
43
virtual
void
run
() = 0;
44
45
private
:
46
// pointer to the thread
47
std::thread uthread;
48
};
49
50
51
#endif
CppThread
Definition
CppThread.hpp:20
CppThread::start
void start()
Definition
CppThread.hpp:26
CppThread::run
virtual void run()=0
CppThread::join
void join()
Definition
CppThread.hpp:33
Generated by
1.10.0