FLINT3.7.0-dev

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)source

Attaches 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).