Get Number of Threads
Keywords: get number threads syntax purpose example

| Prev | Next |  |  |  |  |  | ta_num_threads |

Get Number of Threads
Syntax
`number = thread_alloc::num_threads()`
Purpose
Determine the number of threads as set during parallel_setup .
number
The return value `number` has prototype `
size_t number
` and is equal to the value of num_threads in the previous call to `parallel_setup` . If there was no such previous call, the value one is returned.
Example
The example and test thread_alloc.cpp uses this routine.

Input File: cppad/utility/thread_alloc.hpp