libgdx API

com.badlogic.gdx.utils
Class AtomicQueue<T>

java.lang.Object
  extended by com.badlogic.gdx.utils.AtomicQueue<T>

public class AtomicQueue<T>
extends java.lang.Object

A queue that allows one thread to call put(Object) and another thread to call poll(). Multiple threads must not call these methods.

Author:
Matthias Mann

Constructor Summary
AtomicQueue(int capacity)
           
 
Method Summary
 T poll()
           
 boolean put(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicQueue

public AtomicQueue(int capacity)
Method Detail

put

public boolean put(T value)

poll

public T poll()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)