Constantes pré-definidas
Thread::chunk
pthreads
PHP Manual

# The Thread class

(PECL pthreads >= 0.34)

## Introdução

An implementation of a Thread should extend this declaration, implementing the run method. When the start method of that object is called, the run method code will be executed in separate Thread.

## Sinopse da classe

Thread {
/* Métodos */
final public boolean chunk ( long `$size` , boolean `$preserve` )
final public long getCreatorId ( void )
final public long getThreadId ( void )
final public boolean isJoined ( void )
final public boolean isRunning ( void )
final public boolean isStarted ( void )
final public boolean isTerminated ( void )
final public boolean isWaiting ( void )
final public boolean join ( 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 boolean start ([ long `$options` ] )
final public mixed synchronized ( Closure `$block` [, mixed `$...` ] )
final public boolean unlock ( void )
final public boolean wait ([ long `$timeout` ] )
}

## Índice

- Thread::chunk — Manipulation
- Thread::getCreatorId — Identification
- Thread::getThreadId — Identification
- Thread::isJoined — State Detection
- Thread::isRunning — State Detection
- Thread::isStarted — State Detection
- Thread::isTerminated — State Detection
- Thread::isWaiting — State Detection
- Thread::join — Synchronization
- Thread::lock — Synchronization
- Thread::merge — Manipulation
- Thread::notify — Synchronization
- Thread::pop — Manipulation
- Thread::run — Execution
- Thread::shift — Manipulation
- Thread::start — Execution
- Thread::synchronized — Synchronization
- Thread::unlock — Synchronization
- Thread::wait — Synchronization

Constantes pré-definidas
Thread::chunk
pthreads
PHP Manual