-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathThread.php
More file actions
498 lines (455 loc) Β· 16.5 KB
/
Thread.php
File metadata and controls
498 lines (455 loc) Β· 16.5 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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<?php
declare(strict_types=1);
namespace PHPJava\Packages\java\lang;
use PHPJava\Exceptions\NotImplementedException;
// use PHPJava\Packages\java\lang\Thread\UncaughtExceptionHandler;
// use PHPJava\Packages\java\util\Map;
/**
* The `Thread` class was auto generated.
*
* @parent \PHPJava\Packages\java\lang\Object_
*/
class Thread extends Object_ // implements UncaughtExceptionHandler, Map
{
/**
* The maximum priority that a thread can have.
*
* @var mixed $MAX_PRIORITY
*/
public static $MAX_PRIORITY = null;
/**
* The minimum priority that a thread can have.
*
* @var mixed $MIN_PRIORITY
*/
public static $MIN_PRIORITY = null;
/**
* The default priority that is assigned to a thread.
*
* @var mixed $NORM_PRIORITY
*/
public static $NORM_PRIORITY = null;
/**
* Returns an estimate of the number of active threads in the current thread's thread group and its subgroups.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#activeCount
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_activeCount($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Determines if the currently running thread has permission to modify this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#checkAccess
* @param null|mixed $a
* @throws NotImplementedException
*/
public function checkAccess($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Deprecated, for removal: This API element is subject to removal in a future version.The definition of this call depends on suspend(), which is deprecated.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#countStackFrames
* @param null|mixed $a
* @throws NotImplementedException
*/
public function countStackFrames($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns a reference to the currently executing thread object.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#currentThread
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_currentThread($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Prints a stack trace of the current thread to the standard error stream.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#dumpStack
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_dumpStack($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Copies into the specified array every active thread in the current thread's thread group and its subgroups.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#enumerate
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_enumerate($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns a map of stack traces for all live threads.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getAllStackTraces
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_getAllStackTraces($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the context ClassLoader for this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getContextClassLoader
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getContextClassLoader($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the default handler invoked when a thread abruptly terminates due to an uncaught exception.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getDefaultUncaughtExceptionHandler
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_getDefaultUncaughtExceptionHandler($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the identifier of this Thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getId
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getId($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns this thread's name.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getName
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getName($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns this thread's priority.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getPriority
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getPriority($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns an array of stack trace elements representing the stack dump of this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getStackTrace
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getStackTrace($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the state of this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getState
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getState($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the thread group to which this thread belongs.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getThreadGroup
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getThreadGroup($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the handler invoked when this thread abruptly terminates due to an uncaught exception.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getUncaughtExceptionHandler
* @param null|mixed $a
* @throws NotImplementedException
*/
public function getUncaughtExceptionHandler($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns true if and only if the current thread holds the monitor lock on the specified object.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#holdsLock
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_holdsLock($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Interrupts this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#interrupt
* @param null|mixed $a
* @throws NotImplementedException
*/
public function interrupt($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Tests whether the current thread has been interrupted.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#interrupted
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_interrupted($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Tests if this thread is alive.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#isAlive
* @param null|mixed $a
* @throws NotImplementedException
*/
public function isAlive($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Tests if this thread is a daemon thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#isDaemon
* @param null|mixed $a
* @throws NotImplementedException
*/
public function isDaemon($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Tests whether this thread has been interrupted.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#isInterrupted
* @param null|mixed $a
* @throws NotImplementedException
*/
public function isInterrupted($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Waits for this thread to die.
* Waits at most millis milliseconds for this thread to die.
* Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#join
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function join($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Indicates that the caller is momentarily unable to progress, until the occurrence of one or more actions on the part of other activities.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#onSpinWait
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_onSpinWait($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Deprecated.This method exists solely for use with suspend(), which has been deprecated because it is deadlock-prone.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#resume
* @param null|mixed $a
* @throws NotImplementedException
*/
public function resume($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#run
* @param null|mixed $a
* @throws NotImplementedException
*/
public function run($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Sets the context ClassLoader for this Thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setContextClassLoader
* @param null|mixed $a
* @throws NotImplementedException
*/
public function setContextClassLoader($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Marks this thread as either a daemon thread or a user thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setDaemon
* @param null|mixed $a
* @throws NotImplementedException
*/
public function setDaemon($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Set the default handler invoked when a thread abruptly terminates due to an uncaught exception, and no other handler has been defined for that thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setDefaultUncaughtExceptionHandler
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_setDefaultUncaughtExceptionHandler($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Changes the name of this thread to be equal to the argument name.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setName
* @param null|mixed $a
* @throws NotImplementedException
*/
public function setName($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Changes the priority of this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setPriority
* @param null|mixed $a
* @throws NotImplementedException
*/
public function setPriority($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Set the handler invoked when this thread abruptly terminates due to an uncaught exception.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#setUncaughtExceptionHandler
* @param null|mixed $a
* @throws NotImplementedException
*/
public function setUncaughtExceptionHandler($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers.
* Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#sleep
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_sleep($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#start
* @param null|mixed $a
* @throws NotImplementedException
*/
public function start($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Deprecated.This method is inherently unsafe.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#stop
* @param null|mixed $a
* @throws NotImplementedException
*/
public function stop($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Deprecated.This method has been deprecated, as it is inherently deadlock-prone.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#suspend
* @param null|mixed $a
* @throws NotImplementedException
*/
public function suspend($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns a string representation of this thread, including the thread's name, priority, and thread group.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#toString
* @param null|mixed $a
* @throws NotImplementedException
*/
public function toString($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* A hint to the scheduler that the current thread is willing to yield its current use of a processor.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#yield
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_yield($a = null)
{
throw new NotImplementedException(__METHOD__);
}
}