Thread::wait
Worker::chunk
pthreads
PHP Manual

# La classe Worker

(PECL pthreads >= 0.36)

## Introduction

Les Threads Worker ont un contexte persistent, aussi, ils peuvent être utilisés via Threads dans la plupart des cas.

## Synopsis de la classe

Worker {
/* Méthodes */
final public boolean chunk ( long `$size` , boolean `$preserve` )
final public long getCreatorId ( void )
final public int getStacked ( void )
final public long getThreadId ( void )
final public boolean isShutdown ( void )
final public boolean isWorking ( void )
final public boolean merge ( mixed `$from` [, mixed `$overwrite` ] )
final public boolean pop ( void )
abstract public void run ( void )
final public boolean shift ( void )
final public boolean shutdown ( void )
final public int stack ( Stackable `$work` )
final public boolean start ([ long `$options` ] )
final public int unstack ([ Stackable `$work` ] )
}

## Sommaire

- Worker::chunk — Manipulation
- Worker::getCreatorId — Identification
- Worker::getStacked — Analyse de pile
- Worker::getThreadId — Identification
- Worker::isShutdown — Détection de statut
- Worker::isWorking — Détection de statut
- Worker::merge — Manipulation
- Worker::pop — Manipulation
- Worker::run — Exécution
- Worker::shift — Manipulation
- Worker::shutdown — Synchronisation
- Worker::stack — File d'attente
- Worker::start — Exécution
- Worker::unstack — File d'attente

Thread::wait
Worker::chunk
pthreads
PHP Manual