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.
Class synopsis
final
class parallel\Sync
{
/* Constructor */
/* Access */
/* Synchronization */
}Table of Contents
- parallel\Sync::__construct — Construction
- parallel\Sync::get — Access
- parallel\Sync::set — Access
- parallel\Sync::wait — Synchronization
- parallel\Sync::notify — Synchronization
- parallel\Sync::__invoke — Synchronization
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
