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.

Returns:
value retuned by most recent setting for parallel_new. If set is true, or the most recent setting is 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.
Parameters:
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.
setIf 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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines