Php/docs/class.pht-queue

提供:Dev Guides
< Php
2020年12月14日 (月) 10:38時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

(PECL pht >= 0.0.1)

はじめに

The pht\Queue class is one of the Inter-Thread Communication (ITC) data structures exposed by pht. It can be safely passed around between threads, and manipulated by multiple threads using the mutex locks that have been packed in with the data structure. It is reference-counted across threads, and so it does not need to be explicitly destroyed.


クラス概要


pht\Queue implements pht\Threaded {

/* メソッド */

public front ( ) : mixed

public lock ( ) : void

public pop ( ) : mixed

public push ( mixed $value ) : void

public size ( ) : int

public unlock ( ) : void

}

目次