downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Worker::unstack> <Worker::stack
[edit] Last updated: Fri, 24 May 2013

view this page in

Worker::start

(PECL pthreads >= 0.36)

Worker::startExecution

Descripción

final public boolean Worker::start ([ long $options ] )

Will start a new Thread, executing Worker::run and then waiting for Stackables

Parámetros

options

An optional mask of inheritance constants, by default PTHREADS_INHERIT_ALL

Valores devueltos

A boolean indication of success

Ejemplos

Ejemplo #1 Starting Workers

<?php
class My extends Worker {
    public function 
run() {
        
/** ... **/
    
}
}
$my = new My();
var_dump($my->start());
?>

El resultado del ejemplo sería:

bool(true)



add a note add a note User Contributed Notes Worker::start - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites