php教程

The Vector class

(PECL pht >= 0.0.1)

简介

The pht\Vector 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 is does not need to be explicitly destroyed.

The pht\Vector class enables for array access upon its objects (along with the isset() and unset() functions). The ArrayAccess interface is not explicitly implemented, however, because it is only needed for such abilities by userland classes.

类摘要

pht\Vector implements pht\Threaded {
/* 方法 */
public __construct ([ int $size = 0 [, mixed $value = 0 ]] ) : Vector
public deleteAt ( int $offset ) : void
public insertAt ( mixed $value , int $offset ) : void
public lock ( void ) : void
public pop ( void ) : mixed
public push ( mixed $value ) : void
public resize ( int $size [, mixed $value = 0 ] ) : void
public shift ( void ) : mixed
public size ( void ) : int
public unlock ( void ) : void
public unshift ( mixed $value ) : void
public updateAt ( mixed $value , int $offset ) : void
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788