update : 2015.11.03
php.shukuma.com검색:
|
Mutex::lock(PECL pthreads >= 2.0.0) Mutex::lock — Acquire Mutex 설명
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. 인수
반환값A boolean indication of success. 예제
Example #1 Mutex Locking and Unlocking
<?php 위 예제의 출력: bool(true) bool(true) |