Mutex::trylockAttempt to Acquire Mutex Warnung
The Mutex class has been removed in pthreads v3. Beschreibung
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. Parameter-Liste
RückgabewerteA boolean indication of success. Beispiele
Beispiel #1 Mutex Locking and Unlocking
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: bool(true) bool(true) |