2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. _omp_get_max_threads:
8 omp_get_max_threads -- Maximum number of threads of parallel region
9 *******************************************************************
12 Return the maximum number of threads used for the current parallel region
13 that does not use the clause ``num_threads``.
19 - ``int omp_get_max_threads(void);``
25 - ``integer function omp_get_max_threads()``
28 :ref:`omp_set_num_threads`, :ref:`omp_set_dynamic`, :ref:`omp_get_thread_limit`
31 :openmp:`4.5`, Section 3.2.3.