Thread::kill

(PECL pthreads < 3.0.0)

Thread::kill — ִ��

Warning

pthreads v3 �����Ƴ��˷�����

˵��

public Thread::kill ( void ) : void

ǿ���߳���ֹ

Warning

ͨ������£�����Ա��Ӧ��ǿ��ɱ���߳�

����

�˺���û�в�����

����ֵ

����ֵ����ʾ�����ɹ����

����

Example #1 ɱ���߳�

<?php
class T extends Thread {
    public function 
run() {
        
$stdin = fopen("php://stdin", "r");
        while((
$line = fgets($stdin))) {
            echo 
$line;
        }
    }
}

$t = new T();
$t->start();

var_dump($t->kill());
?>

�������̻������

bool(true)