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

search for in the

Stackable> <Worker::start
[edit] Last updated: Fri, 17 May 2013

view this page in

Worker::unstack

(PECL pthreads >= 0.36)

Worker::unstackStacking

Beschreibung

final public int Worker::unstack ([ Stackable $work ] )

Removes the referenced Stackable ( or all Stackables if parameters are void ) from stack of the referenced Worker

Parameter-Liste

work

An object of type Stackable

Rückgabewerte

The new length of the stack

Beispiele

Beispiel #1 Removing Stackables from Workers

<?php
class Work extends Stackable {
    public function 
run() {
        
    }
}

class 
My extends Worker {
    public function 
run() {
        
/** ... **/
    
}
}
$my = new My();
$work = new Work();
var_dump($my->stack($work));
var_dump($my->unstack($work));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

int(1)
int(0)



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

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