? Mutex::unlock
Cond::broadcast ?
PHP Manual
pthreads
Cond 类
Cond 类
(PECL pthreads >= 2.0.0)
简介
Cond 类提供一组用来直接访问 Posix 条件变量的静态方法。
类摘要
Cond
{
/* 方法 */
final
public
static
boolean
broadcast
(
long
$condition
)
final
public
static
long
create
(
void
)
final
public
static
boolean
destroy
(
long
$condition
)
final
public
static
boolean
signal
(
long
$condition
)
final
public
static
boolean
wait
(
long
$condition
,
long
$mutex
[,
long
$timeout
] )
}
Table of Contents
Cond::broadcast
— 广播条件变量
Cond::create
— 创建一个条件变量
Cond::destroy
— 销毁条件变量
Cond::signal
— 发送唤醒信号
Cond::wait
— 等待