php8.5
Home/ Manual/ reference / parallel/ The parallel\Sync class

The parallel\Sync class

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

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

class parallel\Sync { }

Construct Get Set Wait Notify Invoke

Source: reference/parallel/parallel.sync.xml · from the official PHP manual (php/doc-en)