1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #ifndef TESTTHREADS_XZL201808091501
| #define TESTTHREADS_XZL201808091501
|
| #include <myThread.h>
|
| class TestThreads : public mythread<int> {
| public:
| TestThreads();
|
| ~TestThreads();
|
| virtual void doFunc(std::shared_ptr<int> &) {
| static int a = 0;
| a++;
| printf("Testcode [%d]", a);
| }
| };
|
| #endif
|
|