Worker::stack

(PECL pthreads >= 2.0.0)

Worker::stack��Ҫִ�е�������ջ

˵��

public Worker::stack ( Threaded &$work ) : int

��Ҫִ�е�������ջ�� Worker ����

����

work

Ҫ�� Worker ִ�е� Threaded ��������

����ֵ

��ջ֮��Worker ����ջ�Ĵ�С��

����

Example #1 �� Worker ����ջ����ִ��

<?php
$worker 
= new Worker();
$work = new class extends Threaded {};

var_dump($worker->stack($work));

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

int(1)