派生自 development/c++

pansen
2019-02-28 080c7f97bdb3e6dde95ef2a34f7b5184fbe169bd
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