flint_get_num_threads
Synopsis
#include <flint/thread_support.h>int flint_get_num_threads(void)sourceReturns 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#
- Multiplying integers and polynomials (
fft) - Algorithms, complex mode and threads (
gr_dft) - Using the thread pool directly (
thread_pool)
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).
@misc{flint-doc-thread-support-flint-get-num-threads,
author = {{The FLINT team}},
title = {{flint\_get\_num\_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_threads.html},
note = {Generated 2026-10-20}
}