src/Drupal/functions lock.php

Functions

lock_acquire()

lock_acquire(string  $name, float  $timeout = 30.0) : bool

Parameters

string $name
float $timeout

Returns

bool —

lock_may_be_available()

lock_may_be_available(string  $name) : bool

Parameters

string $name

Returns

bool —

lock_wait()

lock_wait(string  $name, int  $delay = 30) : bool

Parameters

string $name
int $delay

Returns

bool —

lock_release()

lock_release(string  $name) : void

Parameters

string $name

Returns

void —

lock_release_all()

lock_release_all(?string  $lock_id = null) : void

Parameters

?string $lock_id

Returns

void —