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

search for in the

Thread::synchronized> <Thread::run
[edit] Last updated: Fri, 17 May 2013

view this page in

Thread::start

(PECL pthreads >= 0.34)

Thread::startExécution

Description

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

Démarre un nouveau Thread et exécute la méthode run implémentée.

Liste de paramètres

options

Un masque optionnel de constantes héritées ; par défaut, PTHREADS_INHERIT_ALL

Valeurs de retour

Un booléen indiquant le succès de l'opération.

Exemples

Exemple #1 Démarre les Threads

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

L'exemple ci-dessus va afficher :

bool(true)



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

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