pthreads
PHP Manual

The Mutex class

(PECL pthreads < 3.0.0)

Introduction

Warning

The Mutex class has been removed in pthreads v3.

The static methods contained in the Mutex class provide direct access to Posix Mutex functionality.

Class synopsis

Mutex {
/* Methods */
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