-
Notifications
You must be signed in to change notification settings - Fork 4
/
myThread.h
64 lines (43 loc) · 1005 Bytes
/
myThread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef MYTHREAD_H_INCLUDED
#define MYTHREAD_H_INCLUDED
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <clang-c/Index.h>
DECLARE_EVENT_TYPE(wxEVT_MY_EVENT, 52346)
class cbPlugin;
class cbProject;
struct transferData
{
CXTranslationUnit unit;
wxCharBuffer filename;
int id;
cbProject* project;
};
const int threadDoneId = 5634563;
class myThread : public wxThread
{
cbPlugin *handle;
CXIndex index;
wxCharBuffer buffer;
const char** args;
int numOfTokens;
int id;
cbProject* project;
public:
myThread(cbPlugin *cb,CXIndex _index, const wxCharBuffer& _buffer, const char** _args, int _numOfTokens,int _id, cbProject * _project)
{
handle = cb;
index = _index;
buffer = _buffer;
args = _args;
numOfTokens = _numOfTokens;
id = _id;
project = _project;
}
protected:
CXTranslationUnit threadFunc();
virtual void* Entry();
};
#endif