|
CppAD: A C++ Algorithmic Differentiation Package
20130102
|
| static thread_alloc_info* thread_alloc::thread_info | ( | size_t | thread, |
| bool | clear = false |
||
| ) | [inline, static, private] |
Get pointer to the information for this thread.
| thread | [in] Is the thread number for this information pointer. |
| clear | If clear is true, then the information pointer for this thread is deleted and the CPPAD_NULL pointer is returned. There must be no memory currently in either the inuse or avaialble lists when this routine is called. |
info is the retured pointer, info->count_inuse == 0 and info->count_available == 0. In addition, for c = 0 , ... , CPPAD_MAX_NUM_CAPACITY-1 info->root_inuse_[c].next_ == CPPAD_NULL and info->root_available_[c].next_ == CPPAD_NULL. Definition at line 193 of file thread_alloc.hpp.
Referenced by available(), dec_available(), dec_inuse(), free_available(), get_memory(), inc_available(), inc_inuse(), inuse(), parallel_setup(), and return_memory().