« parallel\Events\Event\Type
parallel\Sync::__construct »

The parallel\Sync class

(1.1.0)

Low Level Synchronization

The parallel\Sync class provides access to low level synchronization primitives, mutex, condition variables, and allows the implementation of semaphores.

Synchronization for most applications is much better implemented using channels, however, in some cases authors of low level code may find it useful to be able to access these lower level mechanisms.

クラス概要

final class parallel\Sync {
/* Constructor */
public function __construct()
public function __construct(scalar $value)
/* Access */
public function get(): scalar
public function set(scalar $value)
/* Synchronization */
public function wait()
public function notify(bool $all = ?)
public function __invoke(callable $critical)
}

目次

関連キーワード:
parallel   Sync   Synchronization   construct   level   scalar   Access   access   wait   notify   invoke   Events   Event   Type   Level   provides   synchronization   primitives   mutex   condition   variables   allows   implementation   semaphores   most
関連する関数・ページ:
parallel-sync.wait   parallel-sync.notify   parallel-sync.invoke   parallel-sync.set   parallel-sync.get   parallel-sync.construct