CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
static bool CppAD::local::set_get_in_parallel ( bool(*)(void)  in_parallel_new,
bool  set = false 

Set and call the routine that determine if we are in parallel execution mode.

value retuned by most recent setting for in_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.
in_parallel_new[in] If set is false, in_parallel_new it is not used. Otherwise, the current value of in_parallel_new becomes the most recent setting for in_parallel_user.
setIf set is true, then parallel_new is becomes the most recent setting for this set_get_in_parallel. In this case, it is assumed that we are currently in sequential execution mode.

Definition at line 45 of file set_get_in_parallel.hpp.

Referenced by CppAD::ErrorHandler::Current(), CppAD::ErrorHandler::ErrorHandler(), CppAD::thread_alloc::in_parallel(), CppAD::thread_alloc::parallel_setup(), and CppAD::ErrorHandler::~ErrorHandler().