编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 pthreads thread 类php 扩展库列表/归类 按状态分php ctype 函数 做字母和数字字符检测php ctype 函数 做纯字符检测php ctype 函数 做控制字符检测php ctype 函数 做纯数字检测php variable handling 函数 检测变量是否是整数php maxdb 函数 returns whether thread safety is given or notphp mysql 函数 取得当前系统状态php opcache 函数 获取缓存的状态信息php session 函数 返回当前会话状态php thread 执行php thread 状态监测php threaded 状态检测php thread 状态检测php thread 同步php threaded 状态检测php threaded 状态检测php worker 状态检测php worker 状态检测
关注编程学问公众号
编程学问网 湘ICP备20001732号