Class ClosurePool
java.lang.Object
com.kenai.jffi.ClosurePool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classManages the lifecycle of a native closure.private static final classprivate static final class(package private) static final classThis is a proxy passed to the native code, to be called by the native trampoline code. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallContextprivate final ConcurrentLinkedQueue<ClosurePool.Handle> private final Set<ClosurePool.Magazine> private static final Closureprivate final ConcurrentLinkedQueue<ClosurePool.Handle> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ClosurePool.HandlenewClosureHandle(Closure closure) (package private) voidrecycle(ClosurePool.Magazine magazine) (package private) voidrecycle(ClosurePool.Magazine.Slot slot, ClosurePool.MagazineHolder holder) private void
-
Field Details
-
magazines
-
freeQueue
-
partialQueue
-
callContext
-
NULL_CLOSURE
-
-
Constructor Details
-
ClosurePool
ClosurePool(CallContext callContext)
-
-
Method Details
-
recycle
-
recycle
-
useMagazine
-
newClosureHandle
-
allocateNewHandle
-