Package com.kenai.jffi
Class ClosurePool.Magazine
java.lang.Object
com.kenai.jffi.ClosurePool.Magazine
- Enclosing class:
ClosurePool
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallContext
private final Foreign
A handle to the foreign interface to keep it alive as long as this object is aliveprivate int
private static final MemoryIO
Store a reference to the MemoryIO accessor here for easy accessprivate final long
private int
private final ClosurePool.Magazine.Slot[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ClosurePool.Magazine.Slot
get()
(package private) boolean
isEmpty()
(package private) boolean
isFull()
(package private) void
recycle()
-
Field Details
-
IO
Store a reference to the MemoryIO accessor here for easy access -
foreign
A handle to the foreign interface to keep it alive as long as this object is alive -
ctx
-
magazine
private final long magazine -
slots
-
next
private int next -
freeCount
private int freeCount
-
-
Constructor Details
-
Magazine
Magazine(CallContext ctx)
-
-
Method Details
-
get
-
isFull
boolean isFull() -
isEmpty
boolean isEmpty() -
recycle
void recycle()
-