Package com.kenai.jffi
Class ClosureMagazine
java.lang.Object
com.kenai.jffi.ClosureMagazine
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallContext
keep a reference to the call context, to avoid GC whilst the magazine is in useprivate int
private final Foreign
A handle to the foreign interface to keep it alive as long as this object is aliveprivate final long
private 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