pthreads
PHP Manual

Mutex 类

(PECL pthreads < 3.0.0)

简介

Warning

pthreads v3 中已经将 Mutex 类移除。

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

类摘要

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

Table of Contents


pthreads
PHP Manual