ta_num_threads

View page source

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.