(PECL pthreads >= 2.0.0)
Thread::getCreatorId — ʶ��
���ش�����ǰ�̵߳��߳�ID��
�˺���û�в�����
�߳�ID�����ָ�ʽ
Example #1 ���ش����̵߳��̻߳����ID
<?php
class My extends Thread {
public function run() {
printf("%s created by Thread #%lu\n", __CLASS__, $this->getCreatorId());
}
}
$my = new My();
$my->start();
?>
�������̻������
My created by Thread #123456778899