Mutex
PHP Manual

Mutex::trylock

(PECL pthreads >= 0.34)

Mutex::trylockAttempt to Acquire Mutex

Opis

final public static boolean Mutex::trylock ( long $mutex )

Attempt to lock the Mutex for the caller without blocking if the Mutex is owned (locked) by another Thread.

Parametry

mutex

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

Zwracane wartoĊ›ci

A boolean indication of success.


Mutex
PHP Manual