gr_dft_precomp_set_threads
Synopsis
#include <flint/gr_dft.h>void gr_dft_precomp_set_threads(gr_dft_pre_t P, thread_pool_handle * threads, slong num_threads)sourceAttaches num_threads worker threads to P and its sub-plans; every later transform uses them instead of requesting threads from the pool. The handles are borrowed: the caller obtains them, for example with flint_request_threads, and gives them back with flint_give_back_threads after the plan is cleared. Passing NULL and 0 detaches them.
Guides#
Cite this page
The FLINT team, “gr_dft_precomp_set_threads (gr_dft.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_dft/gr_dft_precomp_set_threads.html (generated 2026-10-20).
@misc{flint-doc-gr-dft-gr-dft-precomp-set-threads,
author = {{The FLINT team}},
title = {{gr\_dft\_precomp\_set\_threads (gr\_dft.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_dft/gr_dft_precomp_set_threads.html},
note = {Generated 2026-10-20}
}