EDU.oswego.cs.dl.util.concurrent

Class FJTaskRunner.VolatileTaskRef

Enclosing Class:
FJTaskRunner

protected static final class FJTaskRunner.VolatileTaskRef
extends java.lang.Object

An object holding a single volatile reference to a FJTask.

Field Summary

protected FJTask
ref
The reference *

Method Summary

protected FJTask
get()
Return the reference *
protected static FJTaskRunner.VolatileTaskRef[]
newArray(int cap)
Initialization utility for constructing arrays.
protected void
put(FJTask r)
Set the reference *
protected FJTask
take()
Return the reference and clear it *

Field Details

ref

protected FJTask ref
The reference *

Method Details

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 *