PHP » GoLang |
login |
register |
about
|
Mutex::unlock(PECL pthreads < 3.0.0) Mutex::unlock — Release Mutex Warning
The Mutex class has been removed in pthreads v3. Description
final
public
static
bool
Mutex::unlock
(
int
$mutex
[,
bool
$destroy
] )Attempts to unlock the Mutex for the caller, optionally destroying the Mutex handle. The calling thread should own the Mutex at the time of the call. 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
|