编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 变量与类型相关扩展 字符类型检测php pthreads thread 类php ctype 函数 做控制字符检测php ctype 函数 做纯数字检测php ctype 函数 做可打印字符串检测,空格除外php ctype 函数 做小写字符检测php php 选项/信息 函数 获取当前 magic quotes runtime 配置选项的激活状态php 网络 函数 获取/设置响应的 http 状态码php variable handling 函数 检测变量是否已设置并且非 nullphp mysql 函数 取得当前系统状态php mongodbref 检测数组是否为数据库引用php mysqlnduhconnection returns the thread id for the current connectionphp thread 状态监测php threaded 状态检测php thread 状态检测php thread 同步php threaded 状态检测php threaded 状态检测php worker 状态检测php worker 状态检测
关注编程学问公众号
编程学问网 湘ICP备20001732号