La clase Collectable

(PECL pthreads >= 2.0.8)

Introducción

Representa un objeto apto para la recolección de basura.

Los objetos Collectable tienen por objeto ser utilizados por la clase Pool, remplazando los objetos Threaded como unidad de trabajo. Proporcionan métodos para establecer y detectar la recolección de un objeto.

Sinopsis de la Clase

Collectable extends Threaded {
/* Métodos */
public bool isGarbage ( void )
public void setGarbage ( void )
/* Métodos heredados */
public array Threaded::chunk ( int $size , bool $preserve )
public int Threaded::count ( void )
public bool Threaded::extend ( string $class )
public Threaded Threaded::from ( Closure $run [, Closure $construct [, array $args ]] )
public array Threaded::getTerminationInfo ( void )
public bool Threaded::isRunning ( void )
public bool Threaded::isTerminated ( void )
public bool Threaded::isWaiting ( void )
public bool Threaded::lock ( void )
public bool Threaded::merge ( mixed $from [, bool $overwrite ] )
public bool Threaded::notify ( void )
public bool Threaded::notifyOne ( void )
public bool Threaded::pop ( void )
public void Threaded::run ( void )
public mixed Threaded::shift ( void )
public mixed Threaded::synchronized ( Closure $block [, mixed $... ] )
public bool Threaded::unlock ( void )
public bool Threaded::wait ([ int $timeout ] )
}

Tabla de contenidos

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top