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_num_threads ( size_t  number_new)
inlinestaticprivate

Set and get the number of threads that are sharing memory.

Parameters
number_newIf number is zero, we are only retreiving the current maximum number of threads. Otherwise, we are setting and retreiving maximum number of threads.
Returns
the number of threads that are sharing memory. If number_new is non-zero, the return value is equal to number_new.

Definition at line 355 of file thread_alloc.hpp.

Referenced by num_threads(), parallel_setup(), and set_get_thread_num().