Lock library to provide serialized execution of PHP code.
psr/log
versions 1, 2 and 3. Thanks @athos-ribeiro and @peldax.Thanks everyone who contributed: @mvorisek and @TheLevti.
LockReleaseException
. Thanks @Furgas for implementing the feature.Mutex
class, you might need to update it slightly.Memcache
Mutex has been removed. You should use the Memcached
mutex instead.then()
is now returned (#23). Thanks @TheLevti.Support for timeouts in flock calls. Uses pcntl when possible, busy waiting when not. #6.
1.5
instead of 2
. This means that released locks will be detected earlier at the cost of performing more checks. This affects the various Redis and Memcached based lock backends.MySQLMutex
which uses GET_LOCK()
as a back end.rand()
but instead uses random_int()
. Now depends on paragonie/random_compat
for PHP 5.6 compatibility (#7, #9, #10).ext-redis
was used with SERIALIZER_PHP
or SERIALIZER_IGBINARY
serialization option (#8, #14, provided by @maestroprog).composer.json
was updated to require all development extensions too.seedRandom()
has been removed from the RedisMutex
class.