Mutex::destroy
Mutex::trylock
Mutex
PHP Manual

# Mutex::lock

(PECL pthreads >= 0.34)

Mutex::lock — Acquire Mutex

### Opis

final public static boolean Mutex::lock ( long `$mutex` )

Attempt to lock the Mutex for the caller.

An attempt to lock a Mutex owned (locked) by another Thread will result in blocking.

### Parametry

`mutex`

  A handle returned by a previous call to Mutex::create().

### Zwracane wartości

A boolean indication of success.

Mutex::destroy
Mutex::trylock
Mutex
PHP Manual