略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Mutex

2024-04-19

Mutex 类

(PECL pthreads < 3.0.0)

简介

Warning

pthreads v3 中已经将 Mutex 类移除。

Mutex 类中包含一些直接访问 Posix 互斥量的静态方法

类摘要

Mutex {
/* 方法 */
final public static create ([ bool $lock ] ) : int
final public static destroy ( int $mutex ) : bool
final public static lock ( int $mutex ) : bool
final public static trylock ( int $mutex ) : bool
final public static unlock ( int $mutex [, bool $destroy ] ) : bool
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.mutex.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3