(PECL pthreads >= 2.0.0)
Worker::getStacked — ��ȡʣ���ջ��С
����ջ��ʣ�����������
�˺���û�в�����
���� worker �еȴ�ִ�е���������
Example #1 Worker::getStacked ����ʾ��
<?php
$worker = new Worker();
for ($i = 0; $i < 5; ++$i) {
$worker->stack(new class extends Threaded {});
}
echo "There are {$worker->getStacked()} stacked tasks\n";
�������̻������
There are 5 stacked tasks