FLINT3.7.0-dev

flint_get_num_threads

Synopsis#include <flint/thread_support.h>
int flint_get_num_threads(void)source

Returns the number of threads the calling thread may use, counting itself. On the master thread this is the value set by flint_set_num_threads (default 1); on a worker it is one more than the max_workers value it was woken with.

Guides#

Cite this page

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