CppAD: A C++ Algorithmic Differentiation Package
20130102
|
static bool thread_alloc::set_get_in_parallel | ( | bool(*)(void) | parallel_new, |
bool | set = false |
||
) | [inline, static, private] |
Set and call the routine that determine if we are in parallel execution mode.
CPPAD_NULL
(its initial value), the return value is false. Otherwise the function corresponding to the most recent setting is called and its value returned by set_get_in_parallel
.parallel_new | [in] If set is false, parallel_new it is not used. Otherwise, the current value of parallel_new becomes the most recent setting for in_parallel. |
set | If set is true, then parallel_new is becomes the most recent setting for this set_get_in_parallel . |
Definition at line 387 of file thread_alloc.hpp.
Referenced by in_parallel(), and parallel_setup().