Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SharedLockInterface.php

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\Lock

Code

public function acquireRead(bool $blocking = false) : bool;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal