The Threaded class

(PECL pthreads >= 2.0.0)

Einführung

Threaded objects form the basis of pthreads ability to execute user code in parallel; they expose synchronization methods and various useful interfaces.

Threaded objects, most importantly, provide implicit safety for the programmer; all operations on the object scope are safe.

Klassenbeschreibung

class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
/* Methoden */
public function chunk(int $size, bool $preserve): array
public function count(): int
public function extend(string $class): bool
public function isRunning(): bool
public function isTerminated(): bool
public function merge(mixed $from, bool $overwrite = ?): bool
public function notify(): bool
public function notifyOne(): bool
public function pop(): bool
public function run(): void
public function shift(): mixed
public function synchronized(Closure $block, mixed ...$args): mixed
public function wait(int $timeout = ?): bool
}

Inhaltsverzeichnis