Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:08 CET 2013 -->
6
<TITLE>
7
AtomicQueue (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="AtomicQueue (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AtomicQueue.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/Base64Coder.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/AtomicQueue.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="AtomicQueue.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.utils</FONT>
107
<BR>
108
Class AtomicQueue&lt;T&gt;</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.AtomicQueue&lt;T&gt;</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>AtomicQueue&lt;T&gt;</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
A queue that allows one thread to call <A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html#put(T)"><CODE>put(Object)</CODE></A> and another thread to call <A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html#poll()"><CODE>poll()</CODE></A>. Multiple threads must
120
 not call these methods.
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>Author:</B></DT>
126
  <DD>Matthias Mann</DD>
127
</DL>
128
<HR>
129
 
130
<P>
131
 
132
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
133
 
134
<A NAME="constructor_summary"><!-- --></A>
135
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138
<B>Constructor Summary</B></FONT></TH>
139
</TR>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html#AtomicQueue(int)">AtomicQueue</A></B>(int&nbsp;capacity)</CODE>
142
 
143
<BR>
144
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145
</TR>
146
</TABLE>
147
&nbsp;
148
<!-- ========== METHOD SUMMARY =========== -->
149
 
150
<A NAME="method_summary"><!-- --></A>
151
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
154
<B>Method Summary</B></FONT></TH>
155
</TR>
156
<TR BGCOLOR="white" CLASS="TableRowColor">
157
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html" title="type parameter in AtomicQueue">T</A></CODE></FONT></TD>
159
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html#poll()">poll</A></B>()</CODE>
160
 
161
<BR>
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166
<CODE>&nbsp;boolean</CODE></FONT></TD>
167
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html#put(T)">put</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html" title="type parameter in AtomicQueue">T</A>&nbsp;value)</CODE>
168
 
169
<BR>
170
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
171
</TR>
172
</TABLE>
173
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
174
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
176
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
177
</TR>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
180
</TR>
181
</TABLE>
182
&nbsp;
183
<P>
184
 
185
<!-- ========= CONSTRUCTOR DETAIL ======== -->
186
 
187
<A NAME="constructor_detail"><!-- --></A>
188
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
189
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
190
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
191
<B>Constructor Detail</B></FONT></TH>
192
</TR>
193
</TABLE>
194
 
195
<A NAME="AtomicQueue(int)"><!-- --></A><H3>
196
AtomicQueue</H3>
197
<PRE>
198
public <B>AtomicQueue</B>(int&nbsp;capacity)</PRE>
199
<DL>
200
</DL>
201
 
202
<!-- ============ METHOD DETAIL ========== -->
203
 
204
<A NAME="method_detail"><!-- --></A>
205
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
206
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
207
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
208
<B>Method Detail</B></FONT></TH>
209
</TR>
210
</TABLE>
211
 
212
<A NAME="put(java.lang.Object)"><!-- --></A><A NAME="put(T)"><!-- --></A><H3>
213
put</H3>
214
<PRE>
215
public boolean <B>put</B>(<A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html" title="type parameter in AtomicQueue">T</A>&nbsp;value)</PRE>
216
<DL>
217
<DD><DL>
218
</DL>
219
</DD>
220
</DL>
221
<HR>
222
 
223
<A NAME="poll()"><!-- --></A><H3>
224
poll</H3>
225
<PRE>
226
public <A HREF="../../../../com/badlogic/gdx/utils/AtomicQueue.html" title="type parameter in AtomicQueue">T</A> <B>poll</B>()</PRE>
227
<DL>
228
<DD><DL>
229
</DL>
230
</DD>
231
</DL>
232
<!-- ========= END OF CLASS DATA ========= -->
233
<HR>
234
 
235
 
236
<!-- ======= START OF BOTTOM NAVBAR ====== -->
237
<A NAME="navbar_bottom"><!-- --></A>
238
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
239
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
240
<TR>
241
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
242
<A NAME="navbar_bottom_firstrow"><!-- --></A>
243
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
244
  <TR ALIGN="center" VALIGN="top">
245
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
246
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
247
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
248
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AtomicQueue.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
249
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
250
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
251
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
252
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
253
  </TR>
254
</TABLE>
255
</TD>
256
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
257
libgdx API</EM>
258
</TD>
259
</TR>
260
 
261
<TR>
262
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
263
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
264
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/Base64Coder.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
265
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
266
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/AtomicQueue.html" target="_top"><B>FRAMES</B></A>  &nbsp;
267
&nbsp;<A HREF="AtomicQueue.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
268
&nbsp;<SCRIPT type="text/javascript">
269
  <!--
270
  if(window==top) {
271
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
272
  }
273
  //-->
274
</SCRIPT>
275
<NOSCRIPT>
276
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
277
</NOSCRIPT>
278
 
279
 
280
</FONT></TD>
281
</TR>
282
<TR>
283
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
284
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
285
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
286
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
287
</TR>
288
</TABLE>
289
<A NAME="skip-navbar_bottom"></A>
290
<!-- ======== END OF BOTTOM NAVBAR ======= -->
291
 
292
<HR>
293
 
294
                                <div style="font-size:9pt"><i>
295
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
296
                                </i></div>
297
 
298
</BODY>
299
</HTML>