EDU.oswego.cs.dl.util.concurrent

Class FJTaskRunner.VolatileTaskRef

protected static final class FJTaskRunner.VolatileTaskRef extends Object

An object holding a single volatile reference to a FJTask.
Field Summary
protected FJTaskref
The reference *
Method Summary
protected FJTaskget()
Return the reference *
protected static FJTaskRunner.VolatileTaskRef[]newArray(int cap)
Initialization utility for constructing arrays.
protected voidput(FJTask r)
Set the reference *
protected FJTasktake()
Return the reference and clear it *

Field Detail

ref

protected volatile FJTask ref
The reference *

Method Detail

get

protected final FJTask get()
Return the reference *

newArray

protected static FJTaskRunner.VolatileTaskRef[] newArray(int cap)
Initialization utility for constructing arrays. Make an array of given capacity and fill it with VolatileTaskRefs.

put

protected final void put(FJTask r)
Set the reference *

take

protected final FJTask take()
Return the reference and clear it *