CppAD: A C++ Algorithmic Differentiation Package
20130102
|
static void* omp_alloc::get_memory | ( | size_t | min_bytes, |
size_t & | cap_bytes | ||
) | [inline, static] |
Use omp_alloc to get a specified amount of memory.
If the memory allocated by a previous call to get_memory
is now avaialable, and min_bytes
is between its previous value and the previous cap_bytes
, this memory allocation will have optimal speed. Otherwise, the memory allocation is more complicated and may have to wait for other threads to complete an allocation.
min_bytes | [in] The minimum number of bytes of memory to be obtained for use. |
cap_bytes | [out] The actual number of bytes of memory obtained for use. |
Definition at line 269 of file omp_alloc.hpp.