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

Tabla de contenidos

add a note add a note

User Contributed Notes

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