php教程

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 parallel\Sync {
/* Constructor */
public __construct ( void )
public __construct ( scalar $value )
/* Access */
public get ( void ) : scalar
public set ( scalar $value )
/* Synchronization */
public wait ( void )
public notify ([ bool $all ] )
public __invoke ( callable $critical )
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788