pht\Queue::sizeGets the size of the queue 説明
public int pht\Queue::size
( void
)
Returns the current size of the queue. This operation requires a pht\Queue's mutex lock to be held if it is being used by multiple threads. パラメータこの関数にはパラメータはありません。 戻り値The size of the queue. 例
例1 Getting a queue's size
<?php 上の例の出力は以下となります。 int(2) |