Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
Worker Class Reference
Inheritance diagram for Worker:
[legend]
Collaboration diagram for Worker:
[legend]

Public Member Functions

 getClassLoader ()
 
 setClassLoader (\ClassLoader $loader=null)
 
 registerClassLoader ()
 
 start (int $options=PTHREADS_INHERIT_ALL)
 
 quit ()
 
 getThreadName ()
 
- Public Member Functions inherited from Worker
 getStacked ()
 
 isShutdown ()
 
 collector (Collectable $collectable)
 
 shutdown ()
 
 stack (Collectable &$work)
 
 unstack ()
 
 collect (callable $function)
 
- Public Member Functions inherited from Thread
 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 ()
 

Protected Attributes

 $classLoader
 
 $isKilled = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Thread
static getCurrentThread ()
 
static getCurrentThreadId ()
 
- Static Public Member Functions inherited from Threaded
static extend ($obj)
 

Detailed Description

This class must be extended by all custom threading classes

Member Function Documentation

quit ( )

Stops the thread using the best way possible. Try to stop it yourself before calling this.


The documentation for this class was generated from the following file: