-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththreading.h
More file actions
288 lines (228 loc) · 8.02 KB
/
threading.h
File metadata and controls
288 lines (228 loc) · 8.02 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
/*
* @author Mário Soares
* @contributors Jefferson González
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @note
* This file was auto-generated by the wxPHP source maker
*/
#ifndef WXPHP_THREADING_H_GUARD
#define WXPHP_THREADING_H_GUARD
#include "references.h"
ZEND_BEGIN_ARG_INFO_EX(wxphp_threading_get_args, 0, 0, 1)
ZEND_ARG_INFO(0, name)
ZEND_END_ARG_INFO()
extern int le_wxCondition;
extern zend_class_entry *php_wxCondition_entry;
void php_wxCondition_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxCondition_php: public wxCondition{
public:
wxCondition_php(wxMutex& mutex):wxCondition(mutex){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxCondition_functions[] = {
PHP_ME(php_wxCondition, Broadcast, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCondition, IsOk, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCondition, Signal, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCondition, Wait, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCondition, WaitTimeout, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCondition, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
extern int le_wxCriticalSectionLocker;
extern zend_class_entry *php_wxCriticalSectionLocker_entry;
void php_wxCriticalSectionLocker_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxCriticalSectionLocker_php: public wxCriticalSectionLocker{
public:
wxCriticalSectionLocker_php(wxCriticalSection& criticalsection):wxCriticalSectionLocker(criticalsection){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxCriticalSectionLocker_functions[] = {
PHP_ME(php_wxCriticalSectionLocker, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
extern int le_wxThreadHelper;
extern zend_class_entry *php_wxThreadHelper_entry;
void php_wxThreadHelper_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxThreadHelper_php: public wxThreadHelper{
public:
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxThreadHelper_functions[] = {
PHP_ME(php_wxThreadHelper, GetThread, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThreadHelper, CreateThread, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThreadHelper, Create, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
#endif
extern int le_wxCriticalSection;
extern zend_class_entry *php_wxCriticalSection_entry;
void php_wxCriticalSection_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxCriticalSection_php: public wxCriticalSection{
public:
wxCriticalSection_php(wxCriticalSectionType critSecType=wxCRITSEC_DEFAULT):wxCriticalSection(critSecType){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxCriticalSection_functions[] = {
PHP_ME(php_wxCriticalSection, Enter, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCriticalSection, Leave, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCriticalSection, TryEnter, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxCriticalSection, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
extern int le_wxThread;
extern zend_class_entry *php_wxThread_entry;
void php_wxThread_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxThread_php: public wxThread{
public:
wxThread_php(wxThreadKind kind=wxTHREAD_DETACHED):wxThread(kind){}
void* Entry();
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxThread_functions[] = {
PHP_ME(php_wxThread, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_ME(php_wxThread, Yield, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, This, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, TestDestroy, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, SetPriority, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Sleep, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, SetConcurrency, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetCPUCount, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetCurrentId, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetId, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetKind, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetMainId, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, GetPriority, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, IsAlive, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, IsDetached, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, IsMain, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, IsPaused, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, IsRunning, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Kill, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Pause, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Resume, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Run, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Create, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Delete, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxThread, Wait, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
#endif
extern int le_wxSemaphore;
extern zend_class_entry *php_wxSemaphore_entry;
void php_wxSemaphore_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxSemaphore_php: public wxSemaphore{
public:
wxSemaphore_php(int initialcount=0, int maxcount=0):wxSemaphore(initialcount, maxcount){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxSemaphore_functions[] = {
PHP_ME(php_wxSemaphore, Post, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxSemaphore, TryWait, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxSemaphore, Wait, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxSemaphore, WaitTimeout, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxSemaphore, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
extern int le_wxMutexLocker;
extern zend_class_entry *php_wxMutexLocker_entry;
void php_wxMutexLocker_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxMutexLocker_php: public wxMutexLocker{
public:
wxMutexLocker_php(wxMutex& mutex):wxMutexLocker(mutex){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxMutexLocker_functions[] = {
PHP_ME(php_wxMutexLocker, IsOk, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxMutexLocker, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
extern int le_wxMutex;
extern zend_class_entry *php_wxMutex_entry;
void php_wxMutex_destruction_handler(zend_rsrc_list_entry * TSRMLS_DC);
class wxMutex_php: public wxMutex{
public:
wxMutex_php(wxMutexType type=wxMUTEX_DEFAULT):wxMutex(type){}
void InitProperties(){
}
zval *evnArray;
void onEvent(wxEvent& evnt);
void ***tsrm_ls;
zval* phpObj;
void** properties;
wxPHPObjectReferences references;
};
#ifdef WXPHP_INCLUDE_METHOD_TABLES
static zend_function_entry php_wxMutex_functions[] = {
PHP_ME(php_wxMutex, Lock, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxMutex, LockTimeout, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxMutex, TryLock, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxMutex, Unlock, NULL, ZEND_ACC_PUBLIC)
PHP_ME(php_wxMutex, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_FE_END
};
#endif
#endif //WXPHP_THREADING_H_GUARD