FLINT3.7.0-dev

flint_cleanup

Synopsis#include <flint/flint.h>
void flint_cleanup(void)source

Frees the data cached by the current thread: calls the registered cleanup functions (and forgets them), frees MPFR's caches and returns the memory of the fmpz reuse pool. It does not touch the global shared caches, which other threads may be reading, or the thread pool. In a build with --enable-reentrant and without thread-local storage it does nothing.

Guides#

Cite this page

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