<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The HashTable class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pht-runnable.run.html">pht\Runnable::run</a></div> <div class="next" style="text-align: right; float: right;"><a href="pht-hashtable.lock.html">pht\HashTable::lock</a></div> <div class="up"><a href="book.pht.html">pht</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.pht-hashtable" class="reference"> <h1 class="title">The HashTable class</h1> <div class="partintro"><p class="verinfo">(PECL pht >= 0.0.1)</p> <div class="section" id="pht-hashtable.intro"> <h2 class="title">Introduction</h2> <p class="para"> The <strong class="classname">pht\HashTable</strong> 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. </p> <p class="para"> The <strong class="classname">pht\HashTable</strong> class enables for array access upon its objects (along with the <span class="function"><a href="function.isset.html" class="function">isset()</a></span> and <span class="function"><a href="function.unset.html" class="function">unset()</a></span> functions). The <a href="class.arrayaccess.html" class="classname">ArrayAccess</a> interface is not explicitly implemented, however, because it is only needed for such abilities by userland classes. </p> </div> <div class="section" id="pht-hashtable.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">pht\HashTable</strong> </span> <span class="oointerface">implements <span class="interfacename"><a href="class.pht-threaded.html" class="interfacename">pht\Threaded</a></span> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="pht-hashtable.lock.html" class="methodname">lock</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="pht-hashtable.size.html" class="methodname">size</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="pht-hashtable.unlock.html" class="methodname">unlock</a></span> ( <span class="methodparam">void</span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="pht-hashtable.lock.html">pht\HashTable::lock</a> — Acquires the hash table's mutex lock</li><li><a href="pht-hashtable.size.html">pht\HashTable::size</a> — Gets the size of the hash table</li><li><a href="pht-hashtable.unlock.html">pht\HashTable::unlock</a> — Releases the hash table's mutex lock</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pht-runnable.run.html">pht\Runnable::run</a></div> <div class="next" style="text-align: right; float: right;"><a href="pht-hashtable.lock.html">pht\HashTable::lock</a></div> <div class="up"><a href="book.pht.html">pht</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>