(PECL pthreads >= 2.0.0)
Thread::getCurrentThread — ʶ��
�˺���û�в�����
��ʾ��ǰִ���̵߳Ķ���
Example #1 ��ȡ��ǰִ���߳�
<?php
class My extends Thread {
public function run() {
var_dump(Thread::getCurrentThread());
}
}
$my = new My();
$my->start();
?>
�������̻������
object(My)#2 (0) { }