Free Memory Currently Available for Quick Use by a Thread
Keywords: free memory currently available quick use thread free_available syntax purpose extra example

| Prev | Next |  |  |  |  |  | ta_free_available |

Free Memory Currently Available for Quick Use by a Thread
Syntax
`thread_alloc::free_available(thread)`
Purpose
Return to the system all the memory that is currently being held for quick use by the specified thread.
Extra Memory
In the case where `thread > 0` , some extra memory is used to track allocations by the specified thread. If `
thread_alloc::inuse(thread) == 0
` the extra memory is also returned to the system.
thread
This argument has prototype `
size_t thread
` Either thread_num must be the same as `thread` , or the current execution mode must be sequential (not parallel ).
Example
thread_alloc.cpp

Input File: cppad/utility/thread_alloc.hpp