Php/docs/class.parallel-sync

提供:Dev Guides
< Php
2020年12月14日 (月) 09:51時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

(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 parallel\Sync {

/* Constructor */

public __construct ( )

public __construct ( scalar $value )

/* Access */

public get ( ) : scalar

public set ( scalar $value )

/* Synchronization */

public wait ( )

public notify ([ bool $all ] )

public __invoke ( callable $critical )

}

目次