(PECL pthreads >= 2.0.0)
Worker::isWorking — ״̬���
pthreads v3 �����Ƴ��˷����� ��ʹ�� Worker::getStacked() ��������� worker ���ǻ��� �д�ִ�е�����
Worker �����Ƿ�����ִ��ջ�ж���
�˺���û�в�����
����ֵ����ʾ Worker �����Ƿ���ִ��ջ�ж���
Example #1 ��� Worker ����״̬
<?php
$my = new Worker();
$my->start();
/* ... */
if ($my->isWorking()) {
/* ... the Worker is busy executing another object */
}
?>