略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: pht\Queue

2024-12-26

The Queue class

(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 ( void ) : mixed
public lock ( void ) : void
public pop ( void ) : mixed
public push ( mixed $value ) : void
public size ( void ) : int
public unlock ( void ) : void
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.pht-queue.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3