Class FJTaskRunner.VolatileTaskRef
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.FJTaskRunner.VolatileTaskRef
- Enclosing class:
FJTaskRunner
An object holding a single volatile reference to a FJTask.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final FJTaskget()Return the referenceprotected static FJTaskRunner.VolatileTaskRef[]newArray(int cap) Initialization utility for constructing arrays.protected final voidSet the referenceprotected final FJTasktake()Return the reference and clear it
-
Field Details
-
ref
The reference
-
-
Constructor Details
-
VolatileTaskRef
protected VolatileTaskRef()
-
-
Method Details
-
put
Set the reference -
get
Return the reference -
take
Return the reference and clear it -
newArray
Initialization utility for constructing arrays. Make an array of given capacity and fill it with VolatileTaskRefs.
-