3 namespace Drupal\Core\Lock;
6 * Defines a Null lock backend.
8 * This implementation won't actually lock anything and will always succeed on
13 class NullLockBackend implements LockBackendInterface {
16 * Current page lock token identifier.
25 public function acquire($name, $timeout = 30.0) {
32 public function lockMayBeAvailable($name) {
39 public function wait($name, $delay = 30) {}
44 public function release($name) {}
49 public function releaseAll($lock_id = NULL) {}
54 public function getLockId() {
55 if (!isset($this->lockId)) {
56 $this->lockId = uniqid(mt_rand(), TRUE);