|
GenisysPro
for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
|
Public Member Functions | |
| 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 | extend ($obj) |
Threaded class
Threaded objects form the basis of pthreads ability to execute user code asynchronously; they expose and include synchronization methods and various useful interfaces.
Threaded objects, most importantly, provide implicit safety for the programmer; all operations on the object scope are safe.
| chunk | ( | $size, | |
| bool | $preserve = false |
||
| ) |
Fetches a chunk of the objects properties table of the given size
| int | $size | The number of items to fetch |
| bool | $preserve | default false |
| isGarbage | ( | ) |
| isRunning | ( | ) |
| isTerminated | ( | ) |
Tell if the referenced object exited, suffered fatal errors, or threw uncaught exceptions during execution
| merge | ( | $from, | |
$overwrite = true |
|||
| ) |
Merges data into the current object
| mixed | $from | The data to merge |
| bool | $overwrite | Overwrite existing keys flag, by default true |
| notify | ( | ) |
| pop | ( | ) |
Pops an item from the objects property table
| run | ( | ) |
The programmer should always implement the run method for objects that are intended for execution.
| shift | ( | ) |
Shifts an item from the objects properties table
| synchronized | ( | \Closure | $function, |
$args = null |
|||
| ) |
Executes the block while retaining the synchronization lock for the current context.
| \Closure | $function | The block of code to execute |
| mixed | $args | ... Variable length list of arguments to use as function arguments to the block |
| wait | ( | $timeout | ) |
Waits for notification from the Stackable
| int | $timeout | An optional timeout in microseconds |