FLINT3.7.0-dev

flint_set_num_workers, flint_reset_num_workers

Synopsis#include <flint/thread_support.h>
int flint_set_num_workers(int num_workers)source
void flint_reset_num_workers(int num_workers)source

Temporarily lowers the number of workers the calling thread may start to num_workers (a larger value has no effect), and restores it. flint_set_num_workers returns the previous value, which must be passed to flint_reset_num_workers before the thread finishes its work.

Guides#

Cite this page

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