编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Thread::isJoined
  • Thread::join »
  • PHP Manual
  • Thread
  • 状态检测

Thread::isStarted

(PECL pthreads >= 2.0.0)

Thread::isStarted — 状态检测

说明

public Thread::isStarted ( void ) : bool

线程是否开始执行

参数

此函数没有参数。

返回值

布尔值,表示线程是否开始执行

范例

Example #1 监测线程是否开始执行

<?php
$worker 
= new Worker();
$worker->start();
var_dump($worker->isStarted());
?>

以上例程会输出:

bool(true)

相关文章
php ctype 函数 检测字符串是否只包含十六进制字符php 过滤器函数 检测是否存在指定类型的变量php 网络 函数 检测 http 头是否已经发送php variable handling 函数 检测变量是否为资源类型php 多字节字符串 函数 检测字符的编码php 多字节字符串 函数 设置/获取 字符编码的检测顺序php mcrypt 函数 检测打开的模式是否以分组方式输出php mcrypt 函数 检测指定算法是否为分组加密算法php pcntl 函数 检查状态代码是否代表一个正常的退出。php pht thread function threadingphp pht thread joins a threadphp thread 执行php thread 状态监测php threaded 状态检测php thread 状态检测php threaded 错误检测php threaded 状态检测php threaded 状态检测php worker 状态检测php worker 状态检测
关注编程学问公众号
编程学问网 湘ICP备20001732号