| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Mutex::trylock(PECL pthreads < 3.0.0) Mutex::trylock — Attempt to Acquire Mutex 警告
The Mutex class has been removed in pthreads v3. 説明
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. パラメータ
返り値A boolean indication of success. 例
例1 Mutex Locking and Unlocking
<?php 上の例の出力は以下となります。 bool(true) bool(true) |
![]() |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Mutex::trylock - Attempt to Acquire Mutex」をGoogle検索
|