编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « pht\Thread::join
  • pht\Thread::taskCount »
  • PHP Manual
  • pht\Thread
  • Starts the new thread

pht\Thread::start

(PECL pht >= 0.0.1)

pht\Thread::start — Starts the new thread

说明

public pht\Thread::start ( void ) : void

This will cause a new thread to be spawned for the associated pht\Thread object, where its internal task queue will begin to be processed.

参数

此函数没有参数。

返回值

No return value.

范例

Example #1 Starting a new thread

<?php

use pht\Thread;

$thread = new Thread();

$thread->start();
$thread->join();

相关文章
php pht the thread classphp ldap 函数 replace attribute values with new onesphp maxdb 函数 returns whether thread safety is given or notphp 函数 registers a new monitoring event subscriberphp ncurses 函数 add string at new position in windowphp newt 函数 create a new buttonphp wddx 函数 starts a new wddx packet with structure inside itphp imagick returns a new imagick objectphp imagickdraw starts a new sub pathphp imagickdraw starts a new sub pathphp pht 简介php pht thread class threadingphp pht thread file threadingphp pht thread function threadingphp pht thread joins a threadphp pht thread starts the new threadphp pht thread gets a thread s task countphp sessionhandler return a new session idphp splfileinfo construct a new splfileinfo objectphp swfmorph creates a new swfmorph object
关注编程学问公众号
编程学问网 湘ICP备20001732号