? Swoole\Http\Server::start
Swoole\Lock::__construct ?
PHP8中文参考手册
Swoole
The Swoole\Lock class
The Swoole\Lock class
(PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Lock
{
/* 方法 */
public
__destruct
( ) :
void
public
lock_read
( ) :
void
public
lock
( ) :
void
public
trylock_read
( ) :
void
public
trylock
( ) :
void
public
unlock
( ) :
void
}
Table of Contents
Swoole\Lock::__construct
— Construct a memory lock.
Swoole\Lock::__destruct
— Destory a Swoole memory lock.
Swoole\Lock::lock_read
— Lock a read-write lock for reading.
Swoole\Lock::lock
— Try to acquire the lock. It will block if the lock is not available.
Swoole\Lock::trylock_read
— Try to lock a read-write lock for reading and return straight away even the lock is not available.
Swoole\Lock::trylock
— Try to acquire the lock and return straight away even the lock is not available.
Swoole\Lock::unlock
— Release the lock.
User Contributed Notes
There are no user contributed notes for this page.
PHP8中文手册
由
站长在线
整理 版权归PHP文档组所有