CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
static size_t CppAD::thread_alloc::set_get_thread_num ( size_t(*)(void)  thread_num_new,
bool  set = false 
)
inlinestaticprivate

Set and call the routine that determine the current thread number.

Returns
returns value for the most recent setting for thread_num_new. If set is true, or the most recent setting is CPPAD_NULL (its initial value), the return value is zero. Otherwise the routine corresponding to the most recent setting is called and its value returned by set_get_thread_num.
Parameters
thread_num_new[in] If set is false, thread_num_new it is not used. Otherwise, the current value of thread_num_new becomes the most recent setting for thread_num.
setIf set is true, then thread_num_new is becomes the most recent setting for this set_get_thread_num.

Definition at line 387 of file thread_alloc.hpp.

Referenced by parallel_setup(), and thread_num().