Common Lisp Package: SIMPLE-FINALIZER

README:

FUNCTION

Private

Undocumented

SIMPLE-FREE (FUNC-FP TYPE)

GENERIC-FUNCTION

Public

FREE (FOREIGN-OBJECT)

An explicit cleanup method. When freed, `GC-P` will be NIL.

FREE-P (FOREIGN-OBJECT)

Returns `T if the foreign object was previously deleted using `FREE`.

SETFGC-P (VALUE FOREIGN-OBJECT)

Enables or disables finalization.

THIS-FP (FOREIGN-OBJECT)

Returns the foreign object reference. This method may not be redefined by a subclass.

SLOT-ACCESSOR

Public

FP (OBJECT)

Returns the foreign object reference.

GC-P (OBJECT)

Returns `T` if the foreign object will be finalized.

CLASS

Public

FOREIGN-OBJECT

A wrapper around the foreign object stored in `FP`. Finalizes the foreign object using the function in `:FREE` when `GC-P` is `T` when the wrapper is garbage collected. The foreign object is explicitely freed by calling `FREE`.