CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
static void CppAD::thread_alloc::parallel_setup ( size_t  num_threads,
bool(*)(void)  in_parallel,
size_t(*)(void)  thread_num 

Set thread_alloc up for parallel mode usage.

num_threads[in] Is the number of thread that may be executing at the same time.
in_parallel[in] Is the routine that determines if we are in parallel mode or not.
thread_num[in] Is the routine that determines the current thread number (between zero and num_threads minus one).

Definition at line 512 of file thread_alloc.hpp.

Referenced by CppAD::AD< Base >::omp_max_thread(), and CppAD::omp_alloc::set_max_num_threads().