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

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

public class AtomicQueue<T>
extends 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
equals, 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()


Copyright © 2013. All Rights Reserved.