flint_cleanup_master
Synopsis
#include <flint/flint.h>void flint_cleanup_master(void)sourceFrees everything FLINT has cached: shuts down the global thread pool, frees the shared caches of thread_support.h, and then does what flint_cleanup does for the current thread. Call it once, from the main thread, after all other threads have finished with FLINT, typically just before the program exits. It makes memory checkers such as Valgrind report no reachable blocks; it is not needed for correctness.
Guides#
- Arithmetic in transform space (
fft_small) - Where FLINT uses fft_small (
fft_small) - The fmpz representation (
fmpz) - Computing with mp_real balls (
mp_real) - Fixed-point kernels (
mp_real) - Using the thread pool directly (
thread_pool)
Cite this page
The FLINT team, “flint_cleanup_master (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/flint_cleanup_master.html (generated 2026-10-20).
@misc{flint-doc-flint-flint-cleanup-master,
author = {{The FLINT team}},
title = {{flint\_cleanup\_master (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/flint_cleanup_master.html},
note = {Generated 2026-10-20}
}