function SharedLockInterface::acquireRead
Acquires the lock for reading. If the lock is acquired by someone else in write mode, the parameter `blocking` determines whether or not the call should block until the release of the lock.
Throws
LockConflictedException If the lock is acquired by someone else in blocking mode
LockAcquiringException If the lock cannot be acquired
2 methods override SharedLockInterface::acquireRead()
- Lock::acquireRead in vendor/
symfony/ lock/ Lock.php - Acquires the lock for reading. If the lock is acquired by someone else in write mode, the parameter `blocking` determines whether or not the call should block until the release of the lock.
- NoLock::acquireRead in vendor/
symfony/ lock/ NoLock.php - Acquires the lock for reading. If the lock is acquired by someone else in write mode, the parameter `blocking` determines whether or not the call should block until the release of the lock.
File
-
vendor/
symfony/ lock/ SharedLockInterface.php, line 31
Class
- SharedLockInterface
- SharedLockInterface defines an interface to manipulate the status of a shared lock.
Namespace
Symfony\Component\LockCode
public function acquireRead(bool $blocking = false) : bool;