The Swoole\Lock class2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/file/class.swoole-lockPhDPHP Documentation GroupSwoole\Lock::__construct -- Construct a memory lock.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.constructSwoole\Lock::__destruct -- Destory a Swoole memory lock.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.destructSwoole\Lock::lock_read -- Lock a read-write lock for reading.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.lock-readSwoole\Lock::lock -- Try to acquire the lock. It will block if the lock is not available.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.lockSwoole\Lock::trylock_read -- Try to lock a read-write lock for reading and return straight away even the lock is not available.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.trylock-readSwoole\Lock::trylock -- Try to acquire the lock and return straight away even the lock is not available.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.trylockSwoole\Lock::unlock -- Release the lock.2024-03-29T12:02:12+00:00tag:php.net,2009-10-13:/manual/en/swoole-lock.unlock