update : 2015.11.03
php.shukuma.com검색:
|
Mutex::trylock(PECL pthreads >= 2.0.0) Mutex::trylock — Attempt to Acquire Mutex 설명
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. 예제
Example #1 Mutex Locking and Unlocking
<?php 위 예제의 출력: bool(true) bool(true) |