CppAD: A C++ Algorithmic Differentiation Package  20130102
static size_t thread_alloc::set_get_num_threads ( size_t  number_new) [inline, static, private]

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 354 of file thread_alloc.hpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines