Mutex::lockAcquire Mutex Warnung
The Mutex class has been removed in pthreads v3. Beschreibung
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. 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) |