FLINT3.7.0-dev

flint_register_cleanup_function

Synopsis#include <flint/flint.h>
void flint_register_cleanup_function(flint_cleanup_function_t cleanup_function)source

Registers a function to be called by the next flint_cleanup or flint_cleanup_master in the current thread. Modules that build thread-local caches register their cleanup functions this way; user code can do the same.

Cite this page

The FLINT team, “flint_register_cleanup_function (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/flint_register_cleanup_function.html (generated 2026-10-20).