|
Genisys
Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
|
Public Member Functions | |
| getCreatorId () | |
| getThreadId () | |
| isJoined () | |
| isStarted () | |
| join () | |
| start (int $options=PTHREADS_INHERIT_ALL) | |
Public Member Functions inherited from Threaded | |
| chunk ($size, bool $preserve=false) | |
| count () | |
| isRunning () | |
| isTerminated () | |
| merge ($from, $overwrite=true) | |
| notify () | |
| notifyOne () | |
| offsetGet ($offset) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| pop () | |
| run () | |
| shift () | |
| synchronized (\Closure $function, $args=null) | |
| wait ($timeout) | |
| getRefCount () | |
| addRef () | |
| delRef () | |
| isGarbage () | |
Static Public Member Functions | |
| static | getCurrentThread () |
| static | getCurrentThreadId () |
Static Public Member Functions inherited from Threaded | |
| static | extend ($obj) |
Basic thread implementation
An implementation of a Thread should extend this declaration, implementing the run method. When the start method of that object is called, the run method code will be executed in separate Thread.
|
static |
Will return the instance of currently executing thread
|
static |
Will return the identity of the currently executing thread
| isJoined | ( | ) |
Tell if the referenced Thread has been joined by another context
| isStarted | ( | ) |
Tell if the referenced Thread has been started
| join | ( | ) |
Causes the calling context to wait for the referenced Thread to finish executing
| start | ( | int | $options = PTHREADS_INHERIT_ALL | ) |
Will start a new Thread to execute the implemented run method
| int | $options | An optional mask of inheritance constants, by default PTHREADS_INHERIT_ALL |