Package com.kenai.jffi
Class ClosurePool.Magazine
- java.lang.Object
-
- com.kenai.jffi.ClosurePool.Magazine
-
- Enclosing class:
- ClosurePool
private static final class ClosurePool.Magazine extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ClosurePool.Magazine.Slot
-
Field Summary
Fields Modifier and Type Field Description private CallContext
ctx
private Foreign
foreign
A handle to the foreign interface to keep it alive as long as this object is aliveprivate int
freeCount
private static MemoryIO
IO
Store a reference to the MemoryIO accessor here for easy accessprivate long
magazine
private int
next
private ClosurePool.Magazine.Slot[]
slots
-
Constructor Summary
Constructors Constructor Description Magazine(CallContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
(package private) ClosurePool.Magazine.Slot
get()
(package private) boolean
isEmpty()
(package private) boolean
isFull()
(package private) void
recycle()
-
-
-
Field Detail
-
IO
private static final MemoryIO IO
Store a reference to the MemoryIO accessor here for easy access
-
foreign
private final Foreign foreign
A handle to the foreign interface to keep it alive as long as this object is alive
-
ctx
private final CallContext ctx
-
magazine
private final long magazine
-
slots
private final ClosurePool.Magazine.Slot[] slots
-
next
private int next
-
freeCount
private int freeCount
-
-
Constructor Detail
-
Magazine
Magazine(CallContext ctx)
-
-
Method Detail
-
get
ClosurePool.Magazine.Slot get()
-
isFull
boolean isFull()
-
isEmpty
boolean isEmpty()
-
recycle
void recycle()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-