PHP » GoLang |
login |
register |
about
|
Mutex::trylock(PECL pthreads < 3.0.0) Mutex::trylock — Attempt to Acquire Mutex Warning
The Mutex class has been removed in pthreads v3. Description
final
public
static
bool
Mutex::trylock
(
int
$mutex
)Attempt to lock the Mutex for the caller without blocking if the Mutex is owned (locked) by another Thread. Parameters
Return ValuesA boolean indication of success. Examples
Example #1 Mutex Locking and Unlocking
<?php The above example will output: bool(true) bool(true) |
more
Recently updated
more
Most requested
more
Last requests
|