Worker::unstack
Stackable::chunk
pthreads
PHP Manual

# The Stackable class

(PECL pthreads >= 0.36)

## Einführung

Stackables are tasks that are executed by Worker threads. You can synchronize with, read, and write Stackable objects before, after and during their execution.

## Klassenbeschreibung

Stackable {
/* Methoden */
final public boolean chunk ( long `$size` , boolean `$preserve` )
final public boolean isRunning ( void )
final public boolean isTerminated ( void )
final public boolean isWaiting ( void )
final public boolean lock ( void )
final public boolean merge ( mixed `$from` [, mixed `$overwrite` ] )
final public boolean notify ( void )
final public boolean pop ( void )
abstract public void run ( void )
final public boolean shift ( void )
final public mixed synchronized ( Closure `$block` [, mixed `$...` ] )
final public boolean unlock ( void )
final public boolean wait ([ string `$timeout` ] )
}

## Inhaltsverzeichnis

- Stackable::chunk — Manipulation
- Stackable::isRunning — State Detection
- Stackable::isTerminated — State Detection
- Stackable::isWaiting — State Detection
- Stackable::lock — Synchronization
- Stackable::merge — Manipulation
- Stackable::notify — Synchronization
- Stackable::pop — Manipulation
- Stackable::run — Execution
- Stackable::shift — Manipulation
- Stackable::synchronized — Synchronization
- Stackable::unlock — Synchronization
- Stackable::wait — Synchronization

Worker::unstack
Stackable::chunk
pthreads
PHP Manual