CppAD: A C++ Algorithmic Differentiation Package
20130918
|
static void CppAD::thread_alloc::return_memory | ( | void * | v_ptr | ) | [inline, static] |
Return memory that was obtained by get_memory
.
If num_threads() == 1
, the memory is returned to the system. Otherwise, it is retained by thread_alloc
and available for use by get_memory
for this thread.
v_ptr | [in] Value of the pointer returned by get_memory and still in use. After this call, this pointer will available (and not in use). |
get_memory
. Definition at line 980 of file thread_alloc.hpp.
Referenced by delete_array(), CppAD::pod_vector< bool >::extend(), CppAD::pod_vector< bool >::free(), CppAD::pod_vector< bool >::operator=(), parallel_setup(), and CppAD::pod_vector< bool >::~pod_vector().