Non-blocking synchronization primitives for PHP based on Amp and Revolt.
Full Changelog: https://github.com/amphp/sync/compare/v1.4.0...v1.4.1
Amp\Sync\Barrier
Amp\Sync\ConcurrentIterator\transform()
Amp\Sync\ConcurrentIterator\map()
Amp\Sync\ConcurrentIterator\filter()
Amp\Sync\ConcurrentIterator\each()
KeyedSemaphore
LocalKeyedSemaphore
PrefixedKeyedSemaphore
Mutex
extends Semaphore
now as a Mutex
is a special form of Semaphore
with exactly one lockLocalKeyedMutex
KeyedMutex
PrefixedKeyedMutex
StaticKeyMutex
ThreadedMutex
because ext-pthreads
development halted (see krakjoe/pthreads#929)ThreadedSemaphore
because ext-pthreads
development halted (see krakjoe/pthreads#929)Removed usage of anonymous class in ThreadedMutex
and ThreadedSemaphore
, instead both now use an internal pre-defined class. Anonymous classes cannot be transferred to a thread, so previously they could not actually be used in a thread as intended… oops…
Initial release.