Threaded::shift

(PECL pthreads >= 2.0.0) Manipulation public mixed Threaded::shift ( void ) Shifts an item from the objects property table Returns: The first item from the objects property table Examples: Shifting the first item from the property table of a threaded object <?php $safe = new Threaded(); while (count($safe) < 10)

Threaded::run

(PECL pthreads >= 2.0.0) Execution public void Threaded::run ( void ) The programmer should always implement the run method for objects that are intended for execution. Returns: The methods return value, if used, will be ignored

Threaded::pop

(PECL pthreads >= 2.0.0) Manipulation public boolean Threaded::pop ( void ) Pops an item from the objects property table Returns: The last item from the objects property table Examples: Popping the last item from the property table of a threaded object <?php $safe = new Threaded(); while (count($safe) < 10)     

Threaded::notify

(PECL pthreads >= 2.0.0) Synchronization public boolean Threaded::notify ( void ) Send notification to the referenced object Returns: A boolean indication of success Examples: Notifications and Waiting <?php class My extends Thread {     public function run() {         /** cause this thread to wait **/         $this

Threaded::merge

(PECL pthreads >= 2.0.0) Manipulation public boolean Threaded::merge ( mixed $from [, bool $overwrite ] ) Merges data into the current object Parameters: from The data to merge overwrite Overwrite existing keys, by default true Returns: A boolean indication of success

Threaded::lock

(PECL pthreads >= 2.0.0) Synchronization public boolean Threaded::lock ( void ) Lock the referenced objects property table Returns: A boolean indication of success Examples: Locking Object Properties <?php class My extends Thread {     public function run() {         var_dump($this->lock());         /** nobody ca

Threaded::isWaiting

(PECL pthreads >= 2.0.0) State Detection public boolean Threaded::isWaiting ( void ) Tell if the referenced object is waiting for notification Returns: A boolean indication of state Examples: Detect the state of the referenced object <?php class My extends Thread {     public function run() {         $this->synch

Threaded::isTerminated

(PECL pthreads >= 2.0.0) State Detection public boolean Threaded::isTerminated ( void ) Tell if the referenced object was terminated during execution; suffered fatal errors, or threw uncaught exceptions Returns: A boolean indication of state Examples: Detect the state of the referenced object <?php class My extends 

Threaded::isRunning

(PECL pthreads >= 2.0.0) State Detection public boolean Threaded::isRunning ( void ) Tell if the referenced object is executing Returns: A boolean indication of state Note: A object is considered running while executing the run method Examples: Detect the state of the referenced object <?php class My extends Th

Threaded::getTerminationInfo

(PECL pthreads >= 2.0.0) Error Detection public array Threaded::getTerminationInfo ( void ) Retrieves terminal error information from the referenced object Returns: array containing the termination conditions of the referenced object Examples: Detecting fatal errors in Threads <?php class My extends Thread {     pub