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

Swoole\Lock::trylock_read

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Try to lock a read-write lock for reading and return straight away even the lock is not available.

Description

Swoole\Lock::trylock_read(): void

Parameters Parameters

Return Values

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