This is the simple-finalizer Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:42:18 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
simple-finalizer
A simple Common Lisp finalizer for foreign objects when using CFFI and TRIVIAL-GARBAGE.
Luke Crook <luke@balooga.com>
Luke Crook <luke@balooga.com>
BSD
0.1
cffi
(system).
trivial-garbage
(system).
package.lisp
(file).
simple-finalizer.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
simple-finalizer/simple-finalizer.asd
simple-finalizer/package.lisp
simple-finalizer/simple-finalizer.lisp
simple-finalizer/simple-finalizer.asd
simple-finalizer
(system).
simple-finalizer/simple-finalizer.lisp
package.lisp
(file).
simple-finalizer
(system).
foreign-object
(class).
fp
(reader method).
free
(generic function).
free-p
(generic function).
gc-p
(reader method).
(setf gc-p)
(generic function).
initialize-instance
(method).
this-fp
(generic function).
simple-free
(function).
Packages are listed by definition order.
simple-finalizer
simfin
common-lisp
.
foreign-object
(class).
fp
(generic reader).
free
(generic function).
free-p
(generic function).
gc-p
(generic reader).
(setf gc-p)
(generic function).
this-fp
(generic function).
simple-free
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
foreign-object
)) ¶Returns the foreign object reference.
An explicit cleanup method. When freed, ‘GC-P‘ will be NIL.
foreign-object
)) ¶Returns ‘T if the foreign object was previously deleted using ‘FREE‘.
foreign-object
)) ¶foreign-object
)) ¶Returns ‘T‘ if the foreign object will be finalized.
Enables or disables finalization.
foreign-object
)) ¶Returns the foreign object reference. This method may not be redefined by a subclass.
foreign-object
)) ¶foreign-object
) &key &allow-other-keys) ¶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‘.
Returns the foreign object reference.
(error ":fp must not be nil.")
:fp
fp
.
This slot is read-only.
Returns ‘T‘ if the foreign object will be finalized.
t
:gc
gc-p
.
This slot is read-only.
(function cffi-sys:foreign-free)
:free
Jump to: | (
F G I M S T |
---|
Jump to: | (
F G I M S T |
---|
Jump to: | F G S |
---|
Jump to: | F G S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|