# The HashTable class

(PECL pht >= 0.0.1)

## Introduction

The pht\HashTable 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.

The pht\HashTable 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.

## Synopsis de la classe

pht\HashTable implements pht\Threaded {
/* Méthodes */
public lock ( void ) : void
public size ( void ) : int
public unlock ( void ) : void
}

## Sommaire

- pht\HashTable::lock — Acquires the hash table's mutex lock
- pht\HashTable::size — Gets the size of the hash table
- pht\HashTable::unlock — Releases the hash table's mutex lock