manual.verysource.com
源码
技术论坛
博客
程序员在线工具箱
php教程
php手册
php手册
PHP Manual
Swoole
The Swoole\Lock class
The Swoole\Lock class
(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Lock
{
/* 方法 */
public
__destruct
(
void
) :
void
public
lock_read
(
void
) :
void
public
lock
(
void
) :
void
public
trylock_read
(
void
) :
void
public
trylock
(
void
) :
void
public
unlock
(
void
) :
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.
CopyRight © 2008-2022 verySource.Com All Rights reserved.
京ICP备17048824号-1
京公网安备:11010502034788