Class ClosureMagazine
java.lang.Object
com.kenai.jffi.ClosureMagazine
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallContextkeep a reference to the call context, to avoid GC whilst the magazine is in useprivate intprivate final ForeignA handle to the foreign interface to keep it alive as long as this object is aliveprivate final longprivate static final AtomicIntegerFieldUpdater<ClosureMagazine> -
Constructor Summary
ConstructorsConstructorDescriptionClosureMagazine(Foreign foreign, CallContext callContext, long magazineAddress) -
Method Summary
-
Field Details
-
foreign
A handle to the foreign interface to keep it alive as long as this object is alive -
callContext
keep a reference to the call context, to avoid GC whilst the magazine is in use -
magazineAddress
private final long magazineAddress -
disposed
private volatile int disposed -
UPDATER
-
-
Constructor Details
-
ClosureMagazine
ClosureMagazine(Foreign foreign, CallContext callContext, long magazineAddress)
-
-
Method Details
-
allocate
-
dispose
public void dispose()
-