GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
Thread Class Reference

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)
 

Detailed Description

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.

http://www.php.net/manual/en/class.thread.php

Member Function Documentation

◆ getCreatorId()

getCreatorId ( )

Will return the identity of the Thread that created the referenced Thread

int A numeric identity

243 {}

◆ getCurrentThread()

static getCurrentThread ( )
static

Will return the instance of currently executing thread

Returns
static
250 {}

◆ getCurrentThreadId()

static getCurrentThreadId ( )
static

Will return the identity of the currently executing thread

int

258 {}

◆ getThreadId()

getThreadId ( )

Will return the identity of the referenced Thread

int

266 {}

◆ isJoined()

isJoined ( )

Tell if the referenced Thread has been joined by another context

bool A boolean indication of state

274 {}

◆ isStarted()

isStarted ( )

Tell if the referenced Thread has been started

bool A boolean indication of state

282 {}

◆ join()

join ( )

Causes the calling context to wait for the referenced Thread to finish executing

bool A boolean indication of state

290 {}

◆ start()

start ( int  $options = PTHREADS_INHERIT_ALL)

Will start a new Thread to execute the implemented run method

Parameters
int$optionsAn optional mask of inheritance constants, by default PTHREADS_INHERIT_ALL

bool A boolean indication of success

300 {}

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