CppAD: A C++ Algorithmic Differentiation Package
20130102
|
static void thread_alloc::parallel_setup | ( | size_t | num_threads, |
bool(*)(void) | in_parallel, | ||
size_t(*)(void) | thread_num | ||
) | [inline, static] |
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 555 of file thread_alloc.hpp.
Referenced by AD< Base >::omp_max_thread(), and omp_alloc::set_max_num_threads().