编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 cairoimagesurface creates a new cairoimagesurface form a png image filephp pht the thread classphp imap 函数 rename an old mailbox to new mailboxphp mysqlnd ms 函数 starts a distributed/xa transaction among mysql serversphp wddx 函数 starts a new wddx packet with structure inside itphp harupage create and return new haruannotation instancephp hyperwave api 函数 inserts new attributephp imagickdraw starts a new sub pathphp imagickdraw starts a new sub pathphp pht atomicinteger acquires the atomic integer s mutex lockphp 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 pht vector updates a value in the vectorphp quickhashintset creates a new quickhashintset objectphp rrdupdater creates new rrdupdater instancephp thread 执行
关注编程学问公众号
编程学问网 湘ICP备20001732号