php8.5
Home/ Manual/ swoole / lock/ Swoole\Lock::lock

Swoole\Lock::lock

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Try to acquire the lock. It will block if the lock is not available.

Description

Swoole\Lock::lock(): void

Parameters Parameters

Return Values

Source: reference/swoole/swoole/lock/lock.xml · from the official PHP manual (php/doc-en)