File: pht_Queue.xml

package info (click to toggle)
phpdox 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,672 kB
  • sloc: xml: 80,724; php: 9,167; makefile: 13
file content (41 lines) | stat: -rw-r--r-- 2,015 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8" ?>
<class xmlns="http://xml.phpdox.net/src" full="pht\Queue" namespace="pht" name="Queue">
  <implements name="pht\Threaded" full="pht\Threaded"/>
  <method name="front" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Returns the first value from a queue">This method will remove a value from the front of the queue (in constant time). Attempting to return the front value from an empty queue will result in an Error exception.</description>
      <return type="mixed"/>
    </docblock>
  </method>
  <method name="lock" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Acquires the queue's mutex lock">This method will acquire the mutex lock associated with the queue. The mutex lock should always be acquired when manipulating the queue if it is being used by multiple threads.</description>
      <return type="void"/>
    </docblock>
  </method>
  <method name="pop" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Pops a value off of the front of a queue"/>
      <return type="mixed"/>
    </docblock>
  </method>
  <method name="push" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Pushes a value to the end of a queue"/>
      <return type="void"/>
    </docblock>
    <parameter name="value" optional="false" byreference="false" type="object" class="mixed"/>
  </method>
  <method name="size" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Gets the size of the queue"/>
      <return type="int"/>
    </docblock>
  </method>
  <method name="unlock" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Releases the queue's mutex lock"/>
      <return type="void"/>
    </docblock>
  </method>
</class>