|
CppAD: A C++ Algorithmic Differentiation Package
20130102
|
| static size_t thread_alloc::set_get_thread_num | ( | size_t(*)(void) | thread_num_new, |
| bool | set = false |
||
| ) | [inline, static, private] |
Set and call the routine that determine the current thread number.
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.| 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. |
| set | If set is true, then thread_num_new is becomes the most recent setting for this set_get_thread_num. |
Definition at line 422 of file thread_alloc.hpp.
Referenced by parallel_setup(), and thread_num().