flint_get_num_available_threads
Synopsis
#include <flint/thread_support.h>Returns one more than the number of threads of the global pool that are currently available, or flint_get_num_threads() if the pool has not been created.
The count is a snapshot and ignores the worker limit of the calling thread: it can exceed flint_get_num_threads() on a worker thread. The extra 1 counts the calling thread, so flint_get_num_available_threads returns 1 when every thread of the pool is in use.
Cite this page
The FLINT team, “flint_get_num_available_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_available_threads.html (generated 2026-10-20).
@misc{flint-doc-thread-support-flint-get-num-available-threads,
author = {{The FLINT team}},
title = {{flint\_get\_num\_available\_threads (thread\_support.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/thread_support/flint_get_num_available_threads.html},
note = {Generated 2026-10-20}
}