.. Copyright 1988-2021 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the GPL license file .. _omp_get_thread_limit: omp_get_thread_limit -- Maximum number of threads ************************************************* :samp:`{Description}:` Return the maximum number of threads of the program. :samp:`{C/C++}:` ============ =================================== *Prototype*: ``int omp_get_thread_limit(void);`` ============ =================================== :samp:`{Fortran}:` ============ =========================================== *Interface*: ``integer function omp_get_thread_limit()`` ============ =========================================== :samp:`{See also}:` omp_get_max_threads, OMP_THREAD_LIMIT :samp:`{Reference}:` `OpenMP specification v4.5 `_, Section 3.2.14.